
robert.mcnamara at gmail
Nov 17, 2009, 11:29 AM
Post #2 of 4
(396 views)
Permalink
|
|
Re: Help with theme writing (porting Retro)
[In reply to]
|
|
On Tue, Nov 17, 2009 at 11:20 AM, Christopher X. Candreva <chris [at] westnet> 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. Robert _______________________________________________ mythtv-users mailing list mythtv-users [at] mythtv http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
|