[mythtv-users] Help with theme writing (porting Retro)

Robert McNamara robert.mcnamara at gmail.com
Tue Nov 17 19:29:14 UTC 2009

On Tue, Nov 17, 2009 at 11:20 AM, Christopher X. Candreva
<chris at westnet.com> wrote:
> First -- is this the appropriate place to post questions on writing themes ?
> If not where is the correct place (devs list ?)  Second -- I will happily
> accept pointers to documentation as the answer . . .

The mythtv-theming mailing list is the best place.  Subscription link
available on mythtv.org.

> I'm working on themeing the recordings-ui.xml file. Starting from the
> default theme, I wanted to replace the rounded area used to select a
> subtitle with an image.  I replaced this:
>                <state name="selected" from="active">
>                    <shape name="selectbar">
>                        <area>25,0,857,30</area>
>                    </shape>
>                </state>
> With this:
>                <state name="selected" from="active">
>                    <imagetype name="selectbar">
>                        <filename>rk-selectbar.png</filename>
>                        <crop>0,0,880,29</crop>
>                    </imagetype>
>                </state>
> This 'works', however, mythfrontend now displays an error about a duplicate
> object "selectbar". Experimentation seems to indicate the area is still
> being defined, somewhere. If I change the name of the image, both the area
> and image show up -- even though I am not defineing it.

It is being defined-- in the "active" state.  "<state name="selected"
from="active">" means *everything* in the active state is inherited,
and everything in selected is an override.  If you don't directly
address the items defined in the active state, they will show up
exactly as defined there.  The shape and the image both show up
because they're different objects.  One inherited from Active and one
newly defined.


More information about the mythtv-users mailing list