<?xml version="1.0" encoding="UTF-8"?>
<includes>

	<include name="Simple_ListIcon">
		<param name="visible" default="true" />
		<param name="left" default="0" />
		<param name="top" default="0" />
		<param name="width" default="100%" />
		<param name="height" default="100%" />
		<param name="texture" default="$INFO[ListItem.Art(thumb)]" />
		<param name="fallback" default="flags/blank.png" />
		<param name="align" default="center" />
		<param name="aspectratio" default="scale" />
		<param name="fadetime" default="0" />
		<definition>
			<control type="image">
				<nested />
				<visible>$PARAM[visible]</visible>
				<left>$PARAM[left]</left>
				<top>$PARAM[top]</top>
				<width>$PARAM[width]</width>
				<height>$PARAM[height]</height>
				<aspectratio align="$PARAM[align]" aligny="center">$PARAM[aspectratio]</aspectratio>
				<texture fallback="$PARAM[fallback]" background="true">$PARAM[texture]</texture>
				<fadetime>$PARAM[fadetime]</fadetime>
			</control>
		</definition>
	</include>

	<!-- Artwork -->
	<include name="Icon_Art">
		<param name="visible" default="true" />
		<param name="fallback" default="flags/blank.png" />
		<param name="aspectratio" default="scale" />
		<param name="fadetime" default="0" />
		<param name="art_diffuse" default="false" />
		<param name="art_diffuse_fadein" default="false" />
		<param name="art_diffuse_fadeout_1" default="false" />
		<param name="art_diffuse_fadeout_2" default="false" />
		<param name="now_playing" default="false" />
		<definition>
			<control type="image">
				<visible>$PARAM[visible]</visible>
				<include content="Dialog_Over_Artwork_Fadediffuse_Animation" />
				<animation effect="fadediffuse" end="ff808080" time="0" condition="$PARAM[art_diffuse]">Conditional</animation>
				<animation effect="fadediffuse" end="ff808080" time="360" tween="sine" easing="inout" condition="$PARAM[art_diffuse_fadein]" reversible="false">Conditional</animation>
				<animation effect="fadediffuse" end="ff808080" time="0" condition="$PARAM[art_diffuse_fadeout_1]" reversible="false">Conditional</animation>
				<animation effect="fadediffuse" start="ff808080" end="ffffffff" time="360" tween="sine" easing="inout" condition="$PARAM[art_diffuse_fadeout_2]" reversible="false">Conditional</animation>
				<animation effect="fadediffuse" end="ff555555" time="0" condition="$PARAM[now_playing]">Conditional</animation>
				<nested />
				<texture fallback="$PARAM[fallback]" background="true">$PARAM[texture]</texture>
				<aspectratio align="center" aligny="center">$PARAM[aspectratio]</aspectratio>
				<fadetime>$PARAM[fadetime]</fadetime>
			</control>
		</definition>
	</include>

	<include name="Icon_Art_Unfocused">
		<param name="watched_diffuse" default="false" />
		<definition>
			<include content="Icon_Art">
				<param name="texture" value="$PARAM[texture]" />
				<param name="aspectratio" value="$PARAM[aspectratio]" />
				<param name="fallback" value="$PARAM[fallback]" />
				<param name="art_diffuse" value="$PARAM[art_diffuse]" />
				<param name="art_diffuse_fadein" value="$PARAM[art_diffuse_fadein]" />
				<param name="art_diffuse_fadeout_1" value="$PARAM[art_diffuse_fadeout_1]" />
				<param name="art_diffuse_fadeout_2" value="$PARAM[art_diffuse_fadeout_2]" />
				<param name="now_playing" value="$PARAM[now_playing]" />
				<animation effect="fadediffuse" end="a9ffffff" time="0" condition="$PARAM[watched_diffuse] + Skin.String(Theme,Light)">Conditional</animation>
				<animation effect="fadediffuse" end="80ffffff" time="0" condition="$PARAM[watched_diffuse] + !Skin.String(Theme,Light)">Conditional</animation>
			</include>
		</definition>
	</include>

	<include name="Icon_Art_Focused">
		<definition>
			<include content="Icon_Art">
				<param name="texture" value="$PARAM[texture]" />
				<param name="aspectratio" value="$PARAM[aspectratio]" />
				<param name="fallback" value="$PARAM[fallback]" />
				<param name="art_diffuse" value="$PARAM[art_diffuse]" />
				<param name="art_diffuse_fadein" value="$PARAM[art_diffuse_fadein]" />
				<param name="art_diffuse_fadeout_1" value="$PARAM[art_diffuse_fadeout_1]" />
				<param name="art_diffuse_fadeout_2" value="$PARAM[art_diffuse_fadeout_2]" />
				<param name="now_playing" value="$PARAM[now_playing] + !Window.IsVisible(1107)" />
				<animation effect="fadediffuse" end="ff555555" time="360" delay="180" tween="sine" easing="inout" reversible="false" condition="$PARAM[now_playing] + Window.IsVisible(1107)">Conditional</animation>
				<animation effect="fadediffuse" end="80000000" time="90" delay="3500" condition="[Window.Is(videos) | Window.Is(home) | Window.Is(music)] + Skin.HasSetting(Multiart_Slideshow) + String.IsEqual(Window(home).Property(Multiart_Fadeout),true) + !String.IsEqual(Control.GetLabel(6400),flags/blank.png) + !$EXP[Content_Switching] + [!String.IsEmpty(Window(home).Property(Multiart_Fadeout)) | Control.HasFocus(3100)] + !$EXP[Multiart_Container_Switching] + ![$EXP[GridView_IsVisible] + $EXP[Scrollbar_HasFocus]]" reversible="false">Conditional</animation>
				<include content="Secondary_List_Scroll_Animation" />
			</include>
		</definition>
	</include>

	<!-- Components-->
	<include name="Icon_Component_Border">
		<param name="visible" default="false" />
		<param name="protrusion" default="0" />
		<definition>
			<control type="image">
				<visible>$PARAM[visible]</visible>
				<visible>!$EXP[TransparentDialog_IsVisible] + !Window.IsVisible(pictureinfo)</visible>
				<include content="Visible_Fade_Animation" />
				<left>-$PARAM[protrusion]</left>
				<top>-$PARAM[protrusion]</top>
				<right>-$PARAM[protrusion]</right>
				<bottom>-$PARAM[protrusion]</bottom>
				<aspectratio>stretch</aspectratio>
				<texture border="$PARAM[size]" colordiffuse="$PARAM[color]" infill="false">$PARAM[texture]</texture>
			</control>
		</definition>
	</include>

	<include name="Icon_Component_Breadcrumb_Overlay">
		<param name="visible" default="true" />
		<definition>
			<control type="image">
				<visible>$PARAM[visible]</visible>
				<visible>$EXP[Progress_IsVisible]</visible>
				<top>0</top>
				<height>50%</height>
				<aspectratio>stretch</aspectratio>
				<texture colordiffuse="$VAR[Dark_Color]" flipy="true">views/progress_overlay.png</texture>
			</control>
		</definition>
	</include>

	<include name="Icon_Component_Multiart_Static">
		<param name="visible" default="!String.IsEqual(Control.GetLabel(6400),flags/blank.png) + !$EXP[Content_Switching] + !String.IsEmpty(Window(home).Property(Multiart_Fadeout))" />
		<param name="fadetime" default="1000" />
		<definition>
			<include content="Icon_Art">
				<param name="visible" value="$PARAM[visible] + !$EXP[Multiart_Container_Switching]" />
				<param name="texture" value="$INFO[Control.GetLabel(3400)]" />
				<param name="aspectratio" value="$PARAM[aspectratio]" />
				<param name="fadetime" value="$PARAM[fadetime]" />
				<param name="art_diffuse" value="$PARAM[art_diffuse]" />
				<param name="now_playing" value="$PARAM[now_playing] + !Window.IsVisible(1107)" />
				<animation effect="fadediffuse" end="ff555555" time="360" delay="180" tween="sine" easing="inout" reversible="false" condition="$PARAM[now_playing] + Window.IsVisible(1107)">Conditional</animation>
				<include content="Multiart_Fade_Animation" />
				<include content="Secondary_List_Scroll_Animation" />
			</include>
		</definition>
	</include>

	<include name="Icon_Component_Multiart_Animated">
		<param name="visible" default="false" />
		<param name="fadetime" default="0" />
		<param name="animationeffect" default="fade" />
		<param name="animationend" default="100" />
		<param name="animationdelay" default="0" />
		<param name="animationcondition" default="false" />
		<param name="animationtype" default="Conditional" />
		<definition>
			<include content="Icon_Art">
				<param name="visible" value="$PARAM[visible] + !$EXP[Multiart_Container_Switching] + ![$EXP[GridView_IsVisible] + $EXP[Scrollbar_HasFocus]] + !Container.Content(files)" />
				<param name="texture" value="$INFO[Control.GetLabel(3400)]" />
				<param name="aspectratio" value="$PARAM[aspectratio]" />
				<param name="fadetime" value="$PARAM[fadetime]" />
				<param name="art_diffuse" value="$PARAM[art_diffuse]" />
				<param name="art_diffuse_fadein" value="$PARAM[art_diffuse_fadein]" />
				<param name="art_diffuse_fadeout_1" value="$PARAM[art_diffuse_fadeout_1]" />
				<param name="art_diffuse_fadeout_2" value="$PARAM[art_diffuse_fadeout_2]" />
				<param name="now_playing" value="$PARAM[now_playing]" />
				<animation effect="$PARAM[animationeffect]" end="$PARAM[animationend]" time="360" delay="$PARAM[animationdelay]" tween="sine" easing="inout" reversible="false" condition="$PARAM[animationcondition]">$PARAM[animationtype]</animation>
			</include>
		</definition>
	</include>

	<include name="Icon_Component_Progress_Overlay">
		<param name="visible" default="true" />
		<definition>
			<control type="image">
				<visible>$PARAM[visible]</visible>
				<visible>$EXP[Progress_IsVisible]</visible>
				<bottom>0</bottom>
				<height>50%</height>
				<aspectratio>stretch</aspectratio>
				<texture colordiffuse="$VAR[Dark_Color]">views/progress_overlay.png</texture>
			</control>
		</definition>
	</include>

	<include name="Icon_Component_Secondary_Mask">
		<control type="group">
			<visible>!$EXP[Infoscreen_Widget_HasFocus] + [[Control.HasFocus(3100) + Window.IsVisible(1109)] | $EXP[Secondary_List_Container_Switching]] + !$EXP[TransparentDialog_IsVisible]</visible>
			<animation effect="fade" start="100" end="0" time="90" delay="720" tween="sine" easing="inout" reversible="true">Hidden</animation>
			<width>$PARAM[width]</width>
			<left>$PARAM[left]</left>
			<control type="image">
				<top>-$PARAM[top]</top>
				<height>$PARAM[top]</height>
				<texture colordiffuse="$VAR[Secondary_Color]">views/white_100.png</texture>
			</control>
			<control type="group">
				<top>$PARAM[height]</top>
				<height>$PARAM[bottom]</height>
				<control type="image">
					<texture colordiffuse="$VAR[Secondary_Color]">views/white_100.png</texture>
				</control>
				<control type="image">
					<visible>Skin.String(Theme,Light)</visible>
					<texture colordiffuse="$VAR[Light_Grey_Color]">views/gradient_light-background_$PARAM[bottom].png</texture>
				</control>
			</control>
		</control>
	</include>

	<include name="ListIcon_Static_Unfocused">
		<param name="visible" default="true" />
		<param name="position" default="0" />
		<param name="left" default="0" />
		<param name="top" default="0" />
		<param name="width" default="100%" />
		<param name="height" default="100%" />
		<param name="art_icon" default="Thumbnail" />
		<param name="fadetime" default="0" />
		<param name="now_playing_size" default="Large" />
		<definition>
			<control type="group">
				<visible>$PARAM[visible]</visible>
				<visible>![String.IsEmpty(Container.ListItemNoWrap($PARAM[position]).Art(thumb)) + String.IsEmpty(Container.ListItemNoWrap($PARAM[position]).Label)] | Window.Is(loginscreen) | Window.Is(videobookmarks) | $EXP[ListView_IsVisible] | $EXP[BillboardView_IsVisible]</visible>
				<left>$PARAM[left]</left>
				<top>$PARAM[top]</top>
				<width>$PARAM[width]</width>
				<height>$PARAM[height]</height>
				<include content="Icon_Art_Unfocused">
					<param name="texture" value="$VAR[$PARAM[art_icon]($PARAM[position])Content]" />
					<param name="fadetime" value="$PARAM[fadetime]" />
					<param name="aspectratio" value="$PARAM[aspectratio]" />
					<param name="fallback" value="$PARAM[fallback]" />
					<param name="art_diffuse" value="$PARAM[art_diffuse]" />
					<param name="watched_diffuse" value="$PARAM[watched_diffuse]" />
					<param name="now_playing" value="$PARAM[now_playing]" />
				</include>
				<nested />
				<!-- Now Playing icon -->
				<include content="Now_Playing_Icon" condition="!Window.Is(loginscreen) + !Window.Is(addoninformation) + !Window.Is(videobookmarks)">
					<param name="visible" value="$PARAM[now_playing]" />
					<param name="size" value="$PARAM[now_playing_size]" />
					<param name="color" value="$VAR[Light_Color]" />
				</include>
			</control>
		</definition>
	</include>

	<include name="ListIcon_Static_Focused">
		<param name="visible" default="true" />
		<param name="position" default="0" />
		<param name="left" default="0" />
		<param name="top" default="0" />
		<param name="width" default="100%" />
		<param name="height" default="100%" />
		<param name="art_icon" default="Thumbnail" />
		<param name="now_playing_size" default="Large" />
		<definition>
			<control type="group">
				<visible>$PARAM[visible]</visible>
				<visible>![String.IsEmpty(Container.ListItemNoWrap($PARAM[position]).Art(thumb)) + String.IsEmpty(Container.ListItemNoWrap($PARAM[position]).Label)] | Window.Is(loginscreen) | Window.Is(videobookmarks) | $EXP[ListView_IsVisible] | $EXP[BillboardView_IsVisible]</visible>
				<left>$PARAM[left]</left>
				<top>$PARAM[top]</top>
				<width>$PARAM[width]</width>
				<height>$PARAM[height]</height>
				<!-- Artwork -->
				<include content="Icon_Art_Focused">
					<param name="texture" value="$VAR[$PARAM[art_icon]($PARAM[position])Content]" />
					<param name="aspectratio" value="$PARAM[aspectratio]" />
					<param name="fallback" value="$PARAM[fallback]" />
					<param name="art_diffuse" value="$PARAM[art_diffuse]" />
					<param name="art_diffuse_fadein" value="$PARAM[art_diffuse_fadein]" />
					<param name="art_diffuse_fadeout_1" value="$PARAM[art_diffuse_fadeout_1]" />
					<param name="art_diffuse_fadeout_2" value="$PARAM[art_diffuse_fadeout_2]" />
					<param name="now_playing" value="$PARAM[now_playing]" />
				</include>
				<nested />
				<!-- Now Playing icon -->
				<control type="group">
					<include content="Secondary_List_Scroll_Animation" />
					<include content="Now_Playing_Icon" condition="!Window.Is(loginscreen) + !Window.Is(addoninformation) + !Window.Is(videobookmarks)">
						<param name="visible" value="$PARAM[now_playing]" />
						<param name="size" value="$PARAM[now_playing_size]" />
						<param name="color" value="$VAR[Light_Color]" />
						<visible>!Window.IsVisible(1107)</visible>
					</include>
				</control>
			</control>
		</definition>
	</include>

	<include name="ListIcon_Animated">
		<param name="visible" default="true" />
		<param name="position" default="0" />
		<param name="left" default="0" />
		<param name="top" default="0" />
		<param name="width" default="100%" />
		<param name="height" default="100%" />
		<param name="art_icon" default="Thumbnail" />
		<param name="now_playing_size" default="Large" />
		<param name="animationeffect" default="fade" />
		<param name="animationend" default="100" />
		<param name="animationcondition" default="false" />
		<param name="animationtype" default="Conditional" />
		<definition>
			<control type="group">
				<visible>$PARAM[visible]</visible>
				<visible>![String.IsEmpty(Container.ListItemNoWrap($PARAM[position]).Art(thumb)) + String.IsEmpty(Container.ListItemNoWrap($PARAM[position]).Label)] | Window.Is(loginscreen) | Window.Is(videobookmarks) | $EXP[ListView_IsVisible] | $EXP[BillboardView_IsVisible]</visible>
				<animation effect="$PARAM[animationeffect]" end="$PARAM[animationend]" time="360" tween="sine" easing="inout" reversible="false" condition="$PARAM[animationcondition]">$PARAM[animationtype]</animation>
				<left>$PARAM[left]</left>
				<top>$PARAM[top]</top>
				<width>$PARAM[width]</width>
				<height>$PARAM[height]</height>
				<include content="Icon_Art_Unfocused">
					<param name="texture" value="$VAR[$PARAM[art_icon]($PARAM[position])Content]" />
					<param name="aspectratio" value="$PARAM[aspectratio]" />
					<param nam="fadetime" value="$PARAM[fadetime]" />
					<param name="fallback" value="$PARAM[fallback]" />
					<param name="art_diffuse" value="$PARAM[art_diffuse]" />
					<param name="art_diffuse_fadein" value="$PARAM[art_diffuse_fadein]" />
					<param name="art_diffuse_fadeout_1" value="$PARAM[art_diffuse_fadeout_1]" />
					<param name="art_diffuse_fadeout_2" value="$PARAM[art_diffuse_fadeout_2]" />
					<param name="now_playing" value="$PARAM[now_playing]" />
				</include>
				<nested />
				<include content="Now_Playing_Icon" condition="!Window.Is(loginscreen) + !Window.Is(addoninformation) + !Window.Is(videobookmarks)">
					<param name="visible" value="$PARAM[now_playing]" />
					<param name="size" value="$PARAM[now_playing_size]" />
					<param name="color" value="$VAR[Light_Color]" />
				</include>
			</control>
		</definition>
	</include>

	<include name="DropShadow">
		<param name="visible" default="true" />
		<param name="left" default="0" />
		<param name="top" default="0" />
		<param name="width" default="120" />
		<param name="height" default="120" />
		<param name="flipx" default="false" />
		<param name="flipy" default="false" />
		<param name="texture" default="views/dropshadow_left_120.png" />
		<param name="colordiffuse" default="$VAR[Dropshadow_Diffuse]" />
		<param name="animationtype" default="Visible" />
		<param name="animationcondition" default="false" />
		<param name="animationeffect" default="fade" />
		<param name="animationend" default="" />
		<param name="animationtime" default="360" />
		<param name="animation2effect" default="" />
		<param name="animation2start" default="" />
		<param name="animation2end" default="" />
		<param name="animation2time" default="" />
		<param name="animation2delay" default="" />
		<param name="animation2center" default="" />
		<param name="animation3effect" default="" />
		<param name="animation3start" default="" />
		<param name="animation3end" default="" />
		<param name="animation3time" default="" />
		<param name="animation3delay" default="" />
		<definition>
			<control type="image">
				<visible>$PARAM[visible]</visible>
				<animation type="$PARAM[animationtype]" condition="$PARAM[animationcondition]" reversible="false">
					<effect type="$PARAM[animationeffect]" end="$PARAM[animationend]" time="$PARAM[animationtime]" tween="sine" easing="inout" />
					<effect type="$PARAM[animation2effect]" start="$PARAM[animation2start]" end="$PARAM[animation2end]" center="$PARAM[animation2center]" time="$PARAM[animation2time]" delay="$PARAM[animation2delay]" tween="sine" easing="inout" />
					<effect type="$PARAM[animation3effect]" start="$PARAM[animation3start]" end="$PARAM[animation3end]" time="$PARAM[animation3time]" delay="$PARAM[animation3delay]" tween="sine" easing="inout" />
				</animation>
				<left>$PARAM[left]</left>
				<right>$PARAM[right]</right>
				<top>$PARAM[top]</top>
				<width>$PARAM[width]</width>
				<height>$PARAM[height]</height>
				<texture colordiffuse="$PARAM[colordiffuse]" flipx="$PARAM[flipx]" flipy="$PARAM[flipy]">$PARAM[texture]</texture>
			</control>
		</definition>
	</include>

</includes>