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 color of a cell in the playlist. The global color string is the default for all columns, but you can assign a different color 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 color code in the color string differs slightly from color 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 color code is a hexadecimal number, taken to be in the form BBGGRR, where RR is the red component of the color, GG is the green component of the color, and BB is the blue component of the color. Of course, as already mentioned, leading zeros can be omitted for color codes in the color string.

Example

The following is an example of a color string:

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

This string will set colors 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.1118323627.txt.gz · Last modified: 2007/08/25 22:58 (external edit)