-topic_background=c,f2f0ff
-lines_background=c,f2f0ff
-topic_border=c,c8d2dc
-tabbar_border=c,c3cee0
-tabbar_background=c,e2ecf9
-tabbar_text=c,000000
-tab_border=c,c8d2dc
-tab_text=c,000000
-tab_hover=c,ffffff
-tab_selected=c,ffffff
-tab_selected_border=c,c8d2dc
-tab_selected_text=c,333333
-input_border=c,c3cee0
-nicklist_border=c,c8d2dc
-nicklist_background=c,f2f0ff
-nicklist_text=c,000000
-nicklist_selected_border=c,c8d2dc
-menu_border=c,c8d2dc
-menu_background=c,f2f0ff
-menu_hover_background=c,FFFFFE
-lastpositionbar=c,C8D2DC
+topic_background=c,f2f0ff,back
+lines_background=c,f2f0ff,back
+topic_border=c,c8d2dc,front
+tabbar_border=c,c3cee0,front
+tabbar_background=c,e2ecf9,back
+tabbar_text=c,000000,front
+tab_border=c,c8d2dc,front
+tab_text=c,000000,front
+tab_hover=c,ffffff,back
+tab_selected=c,ffffff,back
+tab_selected_border=c,c8d2dc,back
+tab_selected_text=c,333333,front
+input_border=c,c3cee0,front
+nicklist_border=c,c8d2dc,front
+nicklist_background=c,f2f0ff,back
+nicklist_text=c,000000,front
+nicklist_selected_border=c,c8d2dc,front
+menu_border=c,c8d2dc,front
+menu_background=c,f2f0ff,back
+menu_hover_background=c,FFFFFE,back
+lastpositionbar=c,C8D2DC,front
timestamp_display=o,SHOW_TIMESTAMPS,inline,none
timestamp_padding_left=o,SHOW_TIMESTAMPS,7px,11px
timestamp_text_indent=o,SHOW_TIMESTAMPS,-7px,-9px
+nicklist_text=c,000000,front
+lines_text=c,000000,front
+menu_text=c,000000,front
+nicklist_selected_background=c,ffffff,back
body {
margin: 0;
}
.qwebirc-qui .lines {
- color: black;
+ color: $(lines_text);
overflow: auto;
font-size: 0.8em;
background: $(lines_background);
.qwebirc-qui .nicklist a {
display: block;
- color: black;
+ color: $(nicklist_text);
text-decoration: none;
cursor: default;
border-top: 1px solid $(nicklist_background);
.qwebirc-qui .nicklist a.selected {
display: block;
- color: black;
- background: white;
+ color: $(nicklist_text);
+ background: $(nicklist_selected_background);
text-decoration: none;
border-bottom: $(nicklist_selected_border) 1px solid;
cursor: default;
.qwebirc-qui .dropdownmenu a {
display: block;
font-size: 0.7em;
- color: black;
+ color: $(menu_text);
cursor: pointer;
cursor: hand;
padding-top: 1px;
hue: null,
saturation: null,
lightness: null,
+ thue: null,
+ tsaturation: null,
+ tlightness: null,
uiOptionsArg: null,
nickValidation: null,
dynamicBaseURL: "/",
if(this.options.searchURL) {
var args = qwebirc.util.parseURI(String(document.location));
- this.options.hue = this.getHueArg(args);
- this.options.saturation = this.getSaturationArg(args);
- this.options.lightness = this.getLightnessArg(args);
+ this.options.hue = this.getHueArg(args, "");
+ this.options.saturation = this.getSaturationArg(args, "");
+ this.options.lightness = this.getLightnessArg(args, "");
+
+ this.options.thue = this.getHueArg(args, "t");
+ this.options.tsaturation = this.getSaturationArg(args, "t");
+ this.options.tlightness = this.getLightnessArg(args, "t");
if($defined(args["uio"]))
this.options.uiOptionsArg = args["uio"];
var details = ui_.loginBox(callback, inick, ichans, autoConnect, usingAutoNick);
}.bind(this));
},
- getHueArg: function(args) {
- var hue = args["hue"];
+ getHueArg: function(args, t) {
+ var hue = args[t + "hue"];
if(!$defined(hue))
return null;
hue = parseInt(hue);
return null;
return hue;
},
- getSaturationArg: function(args) {
- var saturation = args["saturation"];
+ getSaturationArg: function(args, t) {
+ var saturation = args[t + "saturation"];
if(!$defined(saturation))
return null;
saturation = parseInt(saturation);
return null;
return saturation;
},
- getLightnessArg: function(args) {
- var lightness = args["lightness"];
+ getLightnessArg: function(args, t) {
+ var lightness = args[t + "lightness"];
if(!$defined(lightness))
return null;
lightness = parseInt(lightness);
if($defined(this.options.hue)) this.__styleValues.hue = this.options.hue;
if($defined(this.options.saturation)) this.__styleValues.saturation = this.options.saturation;
if($defined(this.options.lightness)) this.__styleValues.lightness = this.options.lightness;
+
+ if(this.options.thue !== null) this.__styleValues.textHue = this.options.thue;
+ if(this.options.tsaturation !== null) this.__styleValues.textSaturation = this.options.tsaturation;
+ if(this.options.tlightness !== null) this.__styleValues.textLightness = this.options.tlightness;
var ev;
if(Browser.Engine.trident) {
if(!$defined(this.__styleSheet))
return;
- var hue = this.__styleValues.hue, lightness = this.__styleValues.lightness, saturation = this.__styleValues.saturation;
-
+ var back = {hue: this.__styleValues.hue, lightness: this.__styleValues.lightness, saturation: this.__styleValues.saturation};
+ var front = {hue: this.__styleValues.textHue, lightness: this.__styleValues.textLightness, saturation: this.__styleValues.textSaturation};
+
+ if(!this.__styleValues.textHue && !this.__styleValues.textLightness && !this.__styleValues.textSaturation)
+ front = back;
+
+ var colours = {
+ back: back,
+ front: front
+ };
+
this.__styleSheet.set(function() {
var mode = arguments[0];
if(mode == "c") {
+ var t = colours[arguments[2]];
var x = new Color(arguments[1]);
- var c = x.setHue(hue).setSaturation(x.hsb[1] + saturation).setBrightness(x.hsb[2] + lightness);
+ var c = x.setHue(t.hue).setSaturation(x.hsb[1] + t.saturation).setBrightness(x.hsb[2] + t.lightness);
if(c == "255,255,255") /* IE confuses white with transparent... */
c = "255,255,254";