[mythtv-theming] Highlighting selected item

Kevin Kuphal kkuphal at gmail.com
Tue Feb 2 05:34:16 UTC 2010


Can anyone advise why MythCenter doesn't respect a change in font in the
recordings list (Watch Recordings) in the selected state?

(from base.xml)
    <buttonlist name="basebuttonlist2">
        <area>0,0,760,305</area>
        <layout>vertical</layout>
        <spacing>5</spacing>
        <wrapstyle>selection</wrapstyle>
        <buttonarea>0,0,760,260</buttonarea>
        <statetype name="buttonitem">
            <area>0,0,760,25</area>
            <state name="active">
                <textarea name="buttontext">
                    <area>1,1,730,24</area>
                    <font>basesmall</font>
                    <font state="disabled">basesmallgrey</font>
                    <font state="error">basesmallyellow</font>
                    <font state="warning">basesmallbold</font>
                    <font state="normal">basesmallboldblue</font>
                    <font state="running">basesmallgreen</font>
                    <align>vcenter</align>
                </textarea>
            </state>
            <state name="selected" from="active">
                <shape name="selectbar">
                    <area>5,-4,750,29</area>
                    <type>roundbox</type>
                    <line color="#00FF00" alpha="255" width="1" />
                    <fill color="#43b038" alpha="128" />
                    <cornerradius>4</cornerradius>
                </shape>
            </state>
            <state name="inactive" from="active" />
        </statetype>

and then from recordings-ui.xml:
        <buttonlist name="recordings" from="basebuttonlist2">
            <area>225,31,550,330</area>
            <buttonarea>0,30,550,270</buttonarea>
            <spacing>4</spacing>
            <wrapstyle>captive</wrapstyle>
            <statetype name="buttonitem">
                <state name="active">
                    <textarea name="titlesubtitle" from="buttontext">
                        <area>15,1,370,24</area>
                        <font>basesmallboldblue</font>
                    </textarea>
                    <textarea name="shortdate" from="titlesubtitle">
                        <area>340,1,100,24</area>
                        <align>right</align>
                        <font>basesmallboldblue</font>
                    </textarea>
                    <textarea name="starttime" from="shortdate">
                        <area>450,1,95,24</area>
                        <align>right</align>
                        <font>basesmallboldblue</font>
                    </textarea>
                    <statetype name="playlist">
                        <state name="yes">
                            <imagetype name="playlistyes">
                                <position>-1,-5</position>
                                <filename>playlist_yes.png</filename>
                            </imagetype>
                        </state>
                        <state name="no" />
                    </statetype>
                </state>
                <state name="inactive" from="active">
                </state>
                <state name="selected" from="active">
                    <textarea name="titlesubtitle" from="buttontext">
                        <area>15,1,370,24</area>
                        <font>basesmallbold</font>
                    </textarea>

Note the last part that overrides with basesmallbold instead of the
basesmallboldblue from the active definition.  If I remove the inheritance
or change the font to a different color, nothing makes the "selected" state
with the highlighted selectbar respect or use the override.

Thoughts?

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-theming/attachments/20100201/bf0363d6/attachment.htm>


More information about the mythtv-theming mailing list