2019-07-27, 18:35
@bsoriano since the auto size is not possible I tried here increase the height of image and center the text inside it, and using <wrapmultiline>true</wrapmultiline>. I also increased font size a little (to 18).
Look (I made just for horizontal menu)
What do you think?
I tested with the text "The Lord of the Rings: The Fellowship of the Ring" and fit perfect.
What I don't understand is if I put the "The Lord of the Rings: The Fellowship of the Ring" direct in <label> they not show correct, but if this is inside a $VAR (like is) they show correct. In $VAR also it show "..." if the text is more big than width.
And why if I use the same width of image in text they not be align in center of image?
I little bug that you can correct easily is if I change the font in Interface Settings, background name will not show correctly.
Look (I made just for horizontal menu)
xml:<include name="HorizTitleButtonBelowTopBar">
<left>0</left>
<top>39</top>
<height>46</height>
<width>320</width>
<texturefocus />
<texturenofocus />
<align>center</align>
<font>FanartTitleFont</font>
<textcolor>FFDFDFDF</textcolor>
<focusedcolor>Highlight</focusedcolor>
<wrapmultiline>true</wrapmultiline>
<label>$VAR[FanartTitleVar]</label>
</include>
xml:
<include name="ShowFanartTitle">
<control type="group">
<visible>[String.IsEqual(Container(300).ListItem.Property(background),playlistBackground) | String.EndsWith(Container(300).ListItem.Property(background),.Fanart)] + !String.IsEqual(Container(300).ListItem.Property(background),Weather.Fanart)</visible>
<control type="image">
<left>0</left>
<top>41.3</top>
<height>98</height>
<width>350</width>
<texture flipx="true" flipy="true">common/TimePanel.png</texture>
<colordiffuse>dfcebe9e</colordiffuse>
<visible>!Skin.HasSetting(FanartTitle.InTopBar) + !Skin.HasSetting(VerticalHome)</visible>
</control>
What do you think?
I tested with the text "The Lord of the Rings: The Fellowship of the Ring" and fit perfect.
What I don't understand is if I put the "The Lord of the Rings: The Fellowship of the Ring" direct in <label> they not show correct, but if this is inside a $VAR (like is) they show correct. In $VAR also it show "..." if the text is more big than width.
And why if I use the same width of image in text they not be align in center of image?
I little bug that you can correct easily is if I change the font in Interface Settings, background name will not show correctly.