User Tools

Site Tools


columns_ui:config:colour_string

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
columns_ui:config:colour_string [2013/09/20 03:01]
98.196.216.82 removed spam
columns_ui:config:colour_string [2018/05/18 19:48] (current)
musicmusic Clarify usage
Line 9: Line 9:
 You can set the text colour as follows: You can set the text colour as follows:
  
-$set_style(''​text''​,//text colour//,//​selected item text colour//​[,//​selected item text colour when window is not focused//])+''​$set_style(text,//​text colour//,//​selected item text colour//​[,//​selected item text colour when window is not focused//])''​ 
 ==== Setting the background colour ==== ==== Setting the background colour ====
 You can set the background colour as follows: You can set the background colour as follows:
  
-$set_style(''​back''​,//​background colour//,//​selected item background colour//​[,//​selected item background colour when window is not focused//])+''​$set_style(back,//​background colour//,//​selected item background colour//​[,//​selected item background colour when window is not focused//])''​ 
 ==== Setting the frame style ==== ==== Setting the frame style ====
 You can set the frame style as follows: You can set the frame style as follows:
  
-$set_style(//​frame part//,//​enabled state//​[,//​colour//​])+''​$set_style(//​frame part//,//​enabled state//​[,//​colour//​])''​
  
 where where
Line 24: Line 26:
   * //colour// is the colour of the frame, required if //enabled state// is ''​1''​.   * //colour// is the colour of the frame, required if //enabled state// is ''​1''​.
  
-==== Technical information ​==== +===== Notes =====
-A colour code in the style string differs slightly from colour codes in the display string and other such strings in the following ways: +
-  * They do not have to be surrounded by '​'​ characters. +
-  * They do not have to be zero-padded upto six digits. +
-Of course, doing these things offers little harm, only in the form of neglibly longer parsing.+
  
-i.e., in this string a colour code is a [[wp>​hexadecimal]] number, taken to be in the form BBGGRR, where RR is the red component of the colour, GG is the green component of the colour, ​and BB is the blue component of the colourOf course, as already mentioned, leading zeros can be omitted for colour codes in the style string.+Note that selection colours can not be overridden if the colour mode for the playlist view is Themed in Colours ​and Fonts preferencesYou must use the Custom or System mode to override selection colours.
  
 ===== Example ===== ===== Example =====
Line 36: Line 34:
 The following is an example of a style string: The following is an example of a style string:
 <code tagz> <code tagz>
-$set_style(text,​FF,0) +$set_style(text,​$rgb(255,​0,​0),0) 
-$set_style(back,​FFFFFF,FFFF+$set_style(back,​$rgb(255,​255,255),​$rgb(255,​255,​0)
-$set_style(frame-left,​1,​0)+$set_style(frame-left,​1,​$rgb(0,0,0))
 </​code>​ </​code>​
 This string will set colours as follows: This string will set colours as follows:
columns_ui/config/colour_string.txt · Last modified: 2018/05/18 19:48 by musicmusic