[Pkg-mozext-commits] [tabmixplus] 34/107: Incompatibility with Tree Style Tab extension, Tab mix loses the ability to color tab texts (regressed by changeset 19e6cddedc19)

David Prévot taffit at moszumanska.debian.org
Tue Dec 29 19:02:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 6a0c6a5018e6e3f3e0ad77cb6063c52f9f0cabca
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed Oct 28 22:33:19 2015 +0200

    Incompatibility with Tree Style Tab extension, Tab mix loses the ability to color tab texts (regressed by changeset 19e6cddedc19)
---
 modules/DynamicRules.jsm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/DynamicRules.jsm b/modules/DynamicRules.jsm
index d67b54c..6cb592b 100644
--- a/modules/DynamicRules.jsm
+++ b/modules/DynamicRules.jsm
@@ -224,8 +224,6 @@ this.DynamicRules = {
   },
 
   updateStyles: function(name, prefObj) {
-    if (this.treeStyleTab && name != "progressMeter")
-      return;
     let templates = this.cssTemplates[name];
     let style = {};
     for (let rule of Object.keys(templates)) {
@@ -233,10 +231,10 @@ this.DynamicRules = {
       if (rule == "text") {
         if (prefObj.text)
           style[rule] = cssText.replace(/#textColor/g, prefObj.textColor);
-      }
-      else if (prefObj.bg)
+      } else if (prefObj.bg && (!this.treeStyleTab || name == "progressMeter")) {
         style[rule] = cssText.replace(/#bottomColor/g, prefObj.bgColor)
                              .replace(/#topColor/g, prefObj.bgTopColor);
+      }
     }
     this.styles[name] = Object.keys(style).length ? style : null;
     this.registerSheet(name);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list