]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/ui/style.js
Tidy up style internals somewhat, and add ability for option based CSS.
[irc/quakenet/qwebirc.git] / js / ui / style.js
index f3ef8dcb855320c92baca143f6472704a415ddce..2ba10e5d28927824eca346e4e4752c417c2fe248 100644 (file)
@@ -66,12 +66,10 @@ qwebirc.ui.style.ModifiableStylesheet = new Class({
          
     var text = this.__cssText;
     for(var key in this.rules) {
-      var value = mutator(new Color(this.rules[key]));
+      var s = this.rules[key].split(",");
+      var value = mutator.pass(s);
       
-      if(value == "255,255,255") /* IE confuses white with transparent... */
-        value = "255,255,254";
-        
-      text = text.replaceAll("$(" + key + ")", "rgb(" + value + ")");
+      text = text.replaceAll("$(" + key + ")", value);
     }
     
     this.__setStylesheet(text);