[vdr] to use a current theme color in a plugin

Luca Olivetti luca at ventoso.org
Sun Feb 27 13:56:13 CET 2005

Klaus Schmidinger wrote:

> Luca Olivetti wrote:
>> Klaus Schmidinger wrote:
>>> There is no way an arbitrary plugin could reasonably use any of the
>>> colors a skin has defined - it doesn't have any idea about what each
>>> color is actually used for!
>> Unless you define some standard names/ids that have always the same 
>> meaning (like "background colour", "selected text colour", "selected 
>> text background", "non selected text colour", etc.).
>> Obviously these would be skin/theme dependent but the plugin wouldn't 
>> need to know that, only ask vdr for the current "selected text 
>> colour", etc.
> Since the skin will give the plugin a cBitmap, there will also be 
> information
> about the color depth and a palette. The skin can fill the palette with the
> colors it can provide, and by convention it could be
>  0 = background
>  1 = text foreground unmarked
>  2 = text foreground marked
>  3 = text background marked
> or something like that. Defining more than 4 colors might be a problem
> for unmodified full featured DVB cards, because there the "central area"
> only has 2bpp.

Yes, that would probably be enough and it's just what I was asking.

- Yo también quiero una Europa libre de Patentes de Software  -
- I want a Software Patents Free Europe too! And you?         -
   EuropeSwPatentFree - http://EuropeSwPatentFree.hispalinux.es

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20050227/38e3d472/signature.pgp

More information about the vdr mailing list