User Tools

Site Tools


columns_ui:config:colour_string
no way to compare when less than two revisions

Differences

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


columns_ui:config:colour_string [2018/05/18 19:48] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== Style script ======
 +
 +===== About =====
 +
 +The style string is a title formatting script that determines the colour of a cell in the playlist. The global style string is the default for all columns, but you can assign a different style string to a particular column from the [[columns_ui:config:playlist_view:columns]] config page.
 +
 +===== Syntax =====
 +==== Setting the text colour ====
 +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//])''
 +
 +==== Setting the background colour ====
 +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//])''
 +
 +==== Setting the frame style ====
 +You can set the frame style as follows:
 +
 +''$set_style(//frame part//,//enabled state//[,//colour//])''
 +
 +where
 +  * //frame part// is either ''frame-top'',''frame-left'',''frame-bottom'',''frame-right''
 +  * //enabled state// is either ''1'' (true) or ''0'' (false).
 +  * //colour// is the colour of the frame, required if //enabled state// is ''1''.
 +
 +===== Notes =====
 +
 +Note that selection colours can not be overridden if the colour mode for the playlist view is Themed in Colours and Fonts preferences. You must use the Custom or System mode to override selection colours.
 +
 +===== Example =====
 +
 +The following is an example of a style string:
 +<code tagz>
 +$set_style(text,$rgb(255,0,0),0)
 +$set_style(back,$rgb(255,255,255),$rgb(255,255,0))
 +$set_style(frame-left,1,$rgb(0,0,0))
 +</code>
 +This string will set colours as follows:
 +  * Default text  - Red
 +  * Default selected text - Black
 +  * Background - White
 +  * Selected background - Yellow
 +  * Cell frame on left side only - Black colour
  
columns_ui/config/colour_string.txt · Last modified: 2018/05/18 19:48 by musicmusic · Currently locked by: 54.36.148.97