Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Setting color for menu items



On Thu, 1 Jul 2004, Sascha Volkenandt wrote:

>Am Mittwoch, 30. Juni 2004 22:42 schrieb Jan Ekholm:
>> This sets the text fine as well as the color. However, as soon as I use
>> SetColor() the color changes to cyan but the "highlight bar" isn't shown
>> anymore when navigating the menu. If I leave out the call the items are
>> all white and the bar shows the currently selected item normally. The
>> SetColor call seems to make it disappear somehow, although it still does
>> work internally, if I press twice "down" I'll get the third item.
>>
>> Anything I've misunderstood about the color usage? The colors show up ok
>> and I have no crasches nor errors.
>
>Basically, everything is right with what you are doing. Well, almost. You just
>have only four colors in the central area. So don't use more, or use a
>different output-device.
>
>Really no error, such as "too many colors used in palette"??

No, I don't use any other colors except for two custom colors for two
different menu items so that the user can easily separate them. All else
is as VDR defines it (title bar etc). So far in my tests both custom
colors haven't even been used at the same time, so I'm basically just
adding one single color (or actually, exchanging the normal white color).

No errors in the log nor on stdout. VDR is perfectly happy with my code.

Maybe the actual submenu must be created in some special way? Or some flag
that allows custom colors or shows the highlight has to be set? The MP3
plugin does this, so it can be done... :)

-- 
         In the Beginning there was nothing, which exploded.
                                        -- Terry Pratchett, Lords and Ladies




Home | Main Index | Thread Index