User Tools

Site Tools


columns_ui:config:colour_string

This is an old revision of the document!


Color string

About

The color string is a titleformatting script that determines the colour of a cell in the playlist. The global colour string is the default for all columns, but you can assign a different colour string to a particular column from the columns config page.

Note: Information on the legacy syntax for color strings can be found here.

Syntax

Setting the text color

You can set the text color as follows:

$set_style(text,text color,selected item text color)

Setting the background color

You can set the background color as follows:

$set_style(back,background color,selected item background color[,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[,color])

where

  • frame part is either frame-top,frame-left,frame-bottom,frame-right
  • enabled state is either 1 (true) or 0 (false).
  • color is the color of the frame, required if enabled state is 1.

Note on colors in this string

A colour code in the colour 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 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 colour. Of course, as already mentioned, leading zeros can be omitted for colour codes in the color string.

Example

The following is an example of a colour string:

$set_style(text,FF,0)
$set_style(back,FFFFFF|FFFF)
$set_style(frame-left,1,0)

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 color
columns_ui/config/colour_string.1117912209.txt.gz · Last modified: 2007/08/25 22:58 (external edit)