music widget
<include content="WidgetListSquare" condition="Library.HasContent(music)">
Includes_Home.xml
xml:
<include name="WidgetListSquare">
<param name="sub_label">$INFO[ListItem.Label]</param>
<param name="sortby"></param>
<param name="visible">True</param>
<param name="sortorder">ascending</param>
<param name="widget_limit">15</param>
<param name="fallback_icon">DefaultAudio.png</param>
<definition>
<include content="CategoryLabel">
<param name="label">$PARAM[widget_header]</param>
<param name="list_id" value="$PARAM[list_id]"/>
<param name="visible" value="$PARAM[visible]"/>
</include>
<include content="BusyListSpinner">
<param name="list_id" value="$PARAM[list_id]"/>
<param name="posy" value="220"/>
<param name="visible" value="$PARAM[visible]"/>
</include>
<control type="panel" id="$PARAM[list_id]">
<left>0</left>
<top>120</top>
<right>0</right>
<height>500</height>
<include content="WidgetListCommon">
<param name="list_id" value="$PARAM[list_id]"/>
</include>
<visible>$PARAM[visible]</visible>
<visible>Integer.IsGreater(Container($PARAM[list_id]).NumItems,0) | Container($PARAM[list_id]).IsUpdating</visible>
<itemlayout width="310" height="500">
<control type="group">
<left>70</left>
<include content="InfoWallMusicLayout">
<param name="main_label" value="$PARAM[main_label]" />
<param name="single_label" value="$PARAM[single_label]" />
<param name="sub_label" value="$PARAM[sub_label]" />
<param name="focused" value="false" />
</include>
</control>
</itemlayout>
<focusedlayout width="310" height="500">
<control type="group">
<depth>DepthContentPopout</depth>
<left>70</left>
<animation type="Focus">
<effect type="zoom" start="100" end="112" time="200" tween="sine" easing="inout" center="240,120" />
</animation>
<animation type="Unfocus">
<effect type="zoom" start="112" end="100" time="200" tween="sine" easing="inout" center="240,120" />
</animation>
<include content="InfoWallMusicLayout">
<param name="main_label" value="$PARAM[main_label]" />
<param name="single_label" value="$PARAM[single_label]" />
<param name="sub_label" value="$PARAM[sub_label]" />
<param name="focused" value="true" />
</include>
</control>
They need to be a tad longer vertically, as both top and bottom are now a bit cropped.
View_54_InfoWall.xml
xml:
<include name="InfoWallMusicLayout">
<param name="fallback_image">DefaultFolder.png</param>
<param name="main_label">$INFO[ListItem.Artist]</param>
<param name="sub_label">$INFO[ListItem.Title]</param>
<param name="single_label">$INFO[ListItem.Label]</param>
<param name="focused">false</param>
<definition>
<control type="image">
<top>0</top>
<width>316</width>
<height>386</height>
<texture>dialogs/dialog-bg-nobo.png</texture>
<bordertexture border="21">overlays/shadow.png</bordertexture>
<bordersize>20</bordersize>
</control>
music and add-ons home screens is still bigger
<focusedlayout width="310" height="500">
- <height>386</height>+59 445
<itemlayout width="310" height="445">
<focusedlayout width="310" height="455">