[mythtv-theming] Selectbar changes buttonlist width
Robert McNamara
robert.mcnamara at gmail.com
Fri Nov 27 18:54:49 UTC 2009
On Fri, Nov 27, 2009 at 10:25 AM, Christopher X. Candreva
<chris at westnet.com> wrote:
> 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>
You didn't set an area on the image, and thus it will take up the full
size, cropped on not. Sounds like you want:
<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>
<area>0,0,280,29</area>
<crop>0,0,280,29</crop>
</imagetype>
<textarea name="buttontext">
<font>small_active</font>
</textarea>
</state>
</statetype>
</buttonlist>
</buttontree>
Robert
More information about the mythtv-theming
mailing list