User Tools

Site Tools


columns_ui:config:colour_string

This is an old revision of the document!


Table of Contents

Colour string

About

The colour 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.

The colour string is expected to output a sequence of colour codes separated by '|' characters. The exact sequence of colours is as follows:

  • Default text
  • Default selected text
  • Background
  • Selected background
  • [Selected background when playlist does not have keyboard focus]
  • [Left cell frame]
  • [Top cell frame]
  • [Right cell frame]
  • [Bottom cell frame]

Square brackets denote an optional colour.

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.

Essentially, 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 colour string.

Example

The following is an example of a colour string:

FF|0|FFFFFF|FFFF

This string will set colours as follows:

  • Default text - Red
  • Default selected text - Black
  • Background - White
  • Selected background - Yellow
  • No cell frame
columns_ui/config/colour_string.1111589713.txt.gz · Last modified: 2007/08/25 22:58 (external edit)