X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/blobdiff_plain/82cf3f26ea190d0b4888e3db7d4cb87e06bc8827..6f8a20dfdc051aefe645f0738f842f23910b7de3:/js/ui/style.js diff --git a/js/ui/style.js b/js/ui/style.js index f3ef8dc..2ba10e5 100644 --- a/js/ui/style.js +++ b/js/ui/style.js @@ -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);