Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Help with theme writing (porting Retro)

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


chris at westnet

Nov 17, 2009, 11:20 AM

Post #1 of 4 (415 views)
Permalink
Help with theme writing (porting Retro)

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 . . .

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.


I'm having some other problem but I'm going to post one at a time, since as
I said it 'works', but there are weird side effects, such as in other states
I can then change the font size, but not the color.

Full recordings-ui.xml and useable Retro-wide theme available here:
http://www.westnet.com/~chris/Mythtv/Retro-wide.tar.gz


==========================================================
Chris Candreva -- chris [at] westnet -- (914) 948-3162
WestNet Internet Services of Westchester
http://www.westnet.com/
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


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


jarpublic at gmail

Nov 17, 2009, 11:30 AM

Post #3 of 4 (391 views)
Permalink
Re: Help with theme writing (porting Retro) [In reply to]

> 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 . . .

mythtv-theming mailing list and IRC: http://www.mythtv.org/support
documentation: http://www.mythtv.org/wiki/Menu_theme_development_guide
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


chris at westnet

Nov 17, 2009, 11:33 AM

Post #4 of 4 (403 views)
Permalink
Re: Help with theme writing (porting Retro) [In reply to]

On Tue, 17 Nov 2009, Robert McNamara wrote:

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

Thanks --- was last working on this late last night, must have missed it.
Will move discussion there.

==========================================================
Chris Candreva -- chris [at] westnet -- (914) 948-3162
WestNet Internet Services of Westchester
http://www.westnet.com/
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.