Kodi Community Forum

Full Version: Animated wallpaper
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi @jingai am not sure the best way to get this to you... but... these are the changes required for animated wallpaper support. I have tested this on Kodi 17 Beta 1 and skin build Metropolis 3.4.0rc2. I have only added it to the List Viewtype as am not sure it fits any where else... will leave that to your decision.

Skinsettins.xml

Added at line 699 to script/extras

<control type="image" id="741">
<include>Settings_Line</include>
</control>
<control type="radiobutton" id="742">
<include>SettingsLabel</include>
<label>Animated Posters</label>
<onclick>Skin.ToggleSetting(AnimatedPosters)</onclick>
<selected>Skin.HasSetting(AnimatedPosters)</selected>
</control>
<control type="radiobutton" id="743">
<include>SettingsLabel</include>
<label>Animated Fanart</label>
<onclick>Skin.ToggleSetting(AnimatedFanart)</onclick>
<selected>Skin.HasSetting(AnimatedFanart)</selected>
</control>



Added at line 495 to Viewtype_list.xml

<control type="image">
<posx>17</posx>
<posy>15</posy>
<width>298</width>
<height>428</height>
<texture background="true">$INFO[Window(Home).Property(SkinHelper.AnimatedPoster)]</texture>
<fadetime>100</fadetime>
<texture background="true" fallback="DefaultThumb.png">$VAR[PosterThumb]</texture>
<aspectratio scalediffuse="false">stretch</aspectratio>
<visible>!IsEmpty(ListItem.Title)</visible>
</control>

Added at line 5 to home.xml

<onload>Skin.SetBool(SkinHelper.EnableAnimatedPosters)</onload>