[vdr] max. colors in OSD ?

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Wed Sep 28 17:59:23 CEST 2005

Martin Dauskardt wrote:
> There are several themes for the sttng-skin (cool, blue ...) which all give
> errors in the log ("too many different colors used in palette") .
> I want to create an own theme without this error :-)
> What I learned is, that the "central area" of the osd menu is limited to 4
> colors (cards with 2MB). The buttons below (red, green, yellow, blue) seem
> to be a different area.
> So how do I count the colors in the central area?
> For example, the default sttng theme seems to have only **two** colors in
> the main menu:
> -yellow (FFFCC024)
> -black (7F000000 for background and FF000000)
> When I change the Background to another color, the above mentioned error
> message appears immidiately when i open the main menu. So it seems that
> 000000 counts as one color, no matter which value I use for transparency,
> right?

No. Every color counts separately. Only if all 32 bit are the same, then
it's the same color.

> If so, which is the third and fourth color in the central area of the main
> menu?

The central area uses the colors

clrMenuItemCurrentFg     = clrBlack
clrMenuItemCurrentBg     = clrYellow
clrMenuItemSelectable    = clrYellow
clrMenuItemNonSelectable = clrCyan
clrBackground            = clrGray50

which makes for a total of four different colors.


More information about the vdr mailing list