[mythtv] Changing highlight/button-on settings in themes

Paul Harrison mythtv at sky.com
Fri Feb 19 23:14:41 UTC 2010

R. G. Newbury wrote:
> On 02/19/2010 01:10 PM, Paul Harrison wrote:
>> I'm not to fond of the selectbar myself but it is growing on me :-) I do
>> hate the bold fonts everywhere though.
>> Anyway thanks to mythui and the way it uses inheritance fixing things to
>> the way you want is pretty easy once you know where to look. Most of the
>> lists inherit from "basebuttonlist2" which is defined in
>> MythCenter-wide/base.xml. The shape that is used as the highlight is
>> called "selectbar" so try a editing that until you find something you
>> like.
>> There's a lot of info in the wiki to help with theming stuff like this.
>> http://www.mythtv.org/wiki/MythUI_Theme_Development is a good place to
>> start.
> Thank you Paul. That was what I needed. I had looked at the wiki. It
> notes that it is a 'comprehensive guide'....which means, as usual,that
> you have to have read most of the first 22 sections to understand the
> second subsection of part 2!.
> Now to play with the colors. Any suggestions for the easist program to
> match colors to hex color values? Blender? Gimp? I used gthumb to mess
> with the hue of button-on.png but that doesn't give hex values.

There's a simple online color picker here :-
http://www.colorschemer.com/online.html which may be of use.

> And a follow-on: then why the discrete button png files in ../ui? Why
> not use a buttonlist variant? Just curious, if you know.
The buttons in MythUI are very flexible  allowing you to chose various
methods for how the button backgrounds are drawn. You can use images you
draw yourself, images created by the theme engine that have a simple
gradient fill, or various simple shapes (currently boxes or rounded
boxes with or without a border and fill or gradient fill). It's up to
the themer which method to use.
The menu was the first thing to be ported to mythui and the existing
images where re-used for the menu buttons. When other parts of myth
where ported like the list buttons it was easier to use the images or
shapes which are automatically generated by myth rather than having to
create new images for everything. One big advantage of using shapes for
the background images is they can be resized to whatever size you want
and they still look good unlike images which will look either stretched
or squashed.
> Geoff

Paul H.

More information about the mythtv-dev mailing list