[mythtv-theming] Selectbar changes buttonlist width

Christopher X. Candreva chris at westnet.com
Fri Nov 27 18:25:09 UTC 2009


On Fri, 27 Nov 2009, Robert McNamara wrote:

> > The short way to describe it is, if I use a selectbar in the state to
> > highlight the selected item, the width of each buttonlist in the buttontree
> > increases.

> As the issue is almost definitely an issue with the theme, it would be
> helpful to have the XML for the whole buttonlist in question.

The whole current theme is updated at:
http://www.westnet.com/~chris/Mythtv/Retro-wide.tar.gz

game-ui.xml has the list in question (gametreelist), which derives from 
buttonlistRetro  in base.xml

If an extract is enough, this is the list:

        <buttontree name="gametreelist">
            <area>128,110,964,310</area>
            <numlists>3</numlists>
            <spacing>80</spacing>
            <buttonlist name="listtemplate" from="buttonlistRetro" >
	    <statetype name="buttonitem">
            <state name="selected" from="active">
                    <imagetype name="selectbar">
                    	<filename>rk-selectbar.png</filename>
                    	<crop>0,0,280,29</crop>
                    </imagetype>
                <textarea name="buttontext">
                    <font>small_active</font>
                </textarea>
            </state>
         </statetype>
         </buttonlist>
        </buttontree>

And this is what it derives from:
    <buttonlist name="buttonlistRetro">
        <area>0,0,280,250</area>
        <layout>vertical</layout>
        <spacing>5</spacing>
        <buttonarea>0,0,100%,97%</buttonarea>
        <statetype name="buttonitem">
            <state name="active">
                <area>0,0,100%,30</area>
                <textarea name="buttontext">
                    <area>5,0,99%,30</area>
                    <font>small_inactive</font>
                    <cutdown>yes</cutdown>
                    <align>left,vcenter</align>
                </textarea>
                <statetype name="buttoncheck">
                    <position>91%,5</position>
                    <state type="off">
                        <imagetype name="checkoff">
                            <filename>lb-check-empty.png</filename>
                        </imagetype>
                    </state>
                    <state type="half">
                        <imagetype name="checkhalf">
                            <filename>lb-check-half.png</filename>
                        </imagetype>
                    </state>
                    <state type="full">
                        <imagetype name="checkfull">h
                            <filename>lb-check-full.png</filename>
                        </imagetype>
                    </state>
                </statetype>
                <imagetype name="buttonarrow">
                    <position>94%,7</position>
                    <filename>lb-arrow.png</filename>
                </imagetype>
            </state>
            <state name="selected" from="active">
                <textarea name="buttontext">
                    <font>small_active</font>
                </textarea>
            </state>
            <state name="inactive" from="active">
                <!-- imagetype name="buttonbackground">
                    <gradient start="#52CA38" end="#349838" alpha="100" />
                </imagetype -->
                <textarea name="buttontext">
                    <font>small_inactive</font>
                </textarea>
            </state>
        </statetype>
        <statetype name="upscrollarrow">
            <position>10,97%</position>
            <state type="off">
                <imagetype name="upon">
                    <filename>lb-uparrow-reg.png</filename>
                </imagetype>
            </state>
            <state type="full">
                <imagetype name="upoff">
                    <filename>lb-uparrow-sel.png</filename>
                </imagetype>
            </state>
        </statetype>
        <statetype name="downscrollarrow">
            <position>40,97%</position>
            <state type="off">
                <imagetype name="dnon">
                    <filename>lb-dnarrow-reg.png</filename>
                </imagetype>
            </state>
            <state type="full">
                <imagetype name="dnoff">
                    <filename>lb-dnarrow-sel.png</filename>
                </imagetype>
            </state>
        </statetype>
    </buttonlist>



==========================================================
Chris Candreva  -- chris at westnet.com -- (914) 948-3162
WestNet Internet Services of Westchester
http://www.westnet.com/


More information about the mythtv-theming mailing list