<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<window type="window">
    <controls>
        <control type="image" id="105">
            <description>Normal Default Background Image</description>
            <include>FullscreenDimensions</include>
            <aspectratio>scale</aspectratio>
            <texture>special://skin/backgrounds/default_bg.jpg</texture>
        </control>
        <control type="image">
            <include>FullscreenDimensions</include>
            <texture>background.png</texture>
            <colordiffuse>BackgroundColor</colordiffuse>
        </control>
        <control type="label" id="104">
            <description>Arrows visibility-controller</description>
            <width>0</width>
            <height>0</height>
        </control>
        <control type="label" id="103">
            <description>AspectRatio-controller</description>
            <width>0</width>
            <height>0</height>
        </control>
        <control type="label" id="102">
            <description>Infolabels visibility-controller</description>
            <width>0</width>
            <height>0</height>
        </control>
        <control type="image" id="101">
            <description>The spinning animation in the background</description>
            <left>930</left>
            <top>510</top>
            <width>60</width>
            <height>60</height>
            <texture colordiffuse="TitleTextColor" fallback="special://skin/extras/spinners/Sun.png">$INFO[Skin.String(busyloader)]</texture>
            <aspectratio>keep</aspectratio>
            <animation effect="rotate" start="360" end="0" center="auto" time="2000" loop="true"  condition="!Skin.HasSetting(Disable.Animations)">conditional</animation>
            <animation effect="fade" start="0" end="100" time="400" delay="720">WindowOpen</animation>
            <visible>[!Integer.IsGreater(Container(100).NumPages,0) | ![Container(100).OnNext | Container(100).OnPrevious]]</visible>
        </control>
        <control type="list" id="100">
            <description>List of Images</description>
            <left>0</left>
            <top>0</top>
            <include>FullscreenDimensions</include>
            <scrolltime tween="cubic" easing="inout">500</scrolltime>
            <animation effect="zoom" start="100" end="65" center="auto" time="400" tween="cubic" easing="inout" condition="String.IsEqual(Window.Property(Category),Album)">Conditional</animation>
            <animation effect="slide" start="0" end="0,-80" center="auto" time="400" tween="cubic" easing="inout" condition="String.IsEqual(Window.Property(Category),Album)">Conditional</animation>
            <animation effect="fade" end="0" start="100" time="150">WindowClose</animation>
            <orientation>horizontal</orientation>
            <preloaditems>2</preloaditems>
            <itemlayout width="1920" height="1080">
                <control type="image">
                    <description>Picture in ratio scale</description>
                    <include>FullscreenDimensions</include>
                    <texture background="true">$INFO[ListItem.Icon]</texture>
                    <aspectratio>scale</aspectratio>
                    <visible>!Control.IsVisible(103)</visible>
                </control>
                <control type="image">
                    <description>Picture in ratio keep (default)</description>
                    <include>FullscreenDimensions</include>
                    <texture background="true">$INFO[ListItem.Icon]</texture>
                    <aspectratio>keep</aspectratio>
                    <visible>Control.IsVisible(103)</visible>
                </control>
            </itemlayout>
            <focusedlayout width="1920" height="1080">
                <control type="image">
                    <description>Picture in ratio scale</description>
                    <include>FullscreenDimensions</include>
                    <texture background="true">$INFO[ListItem.Icon]</texture>
                    <aspectratio>scale</aspectratio>
                    <visible>!Control.IsVisible(103)</visible>
                </control>
                <control type="image">
                    <description>Picture in ratio keep (default)</description>
                    <include>FullscreenDimensions</include>
                    <texture background="true">$INFO[ListItem.Icon]</texture>
                    <aspectratio>keep</aspectratio>
                    <visible>Control.IsVisible(103)</visible>
                </control>
            </focusedlayout>
        </control>
        <control type="group">
            <visible>String.IsEqual(Window.Property(Category),Album)</visible>
            <include>Topbar</include>
        </control>
        <!--<control type="group">
            <visible>Control.IsVisible(102) + String.IsEqual(Window.Property(Category),Album)</visible>
            <animation effect="fade" end="0" start="100" time="150">WindowClose</animation>
            <top>420</top>
            <control type="image">
                <description>Arrow left</description>
                <left>60</left>
                <width>29</width>
                <height>58</height>
                <texture flipx="true" colordiffuse="FocusColor">arrowright.png</texture>
                <visible>Control.IsVisible(104) + Integer.IsGreater(Container(100).NumPages,0) + !String.IsEqual(Container(100).CurrentPage,1)</visible>
            </control>
            <control type="image">
                <description>Arrow right</description>
                <left>1831</left>
                <width>29</width>
                <height>58</height>
                <texture colordiffuse="FocusColor">arrowright.png</texture>
                <visible>Control.IsVisible(104) + Integer.IsGreater(Container(100).NumPages,0) + !String.IsEqual(Container(100).CurrentPage,Container(100).NumPages)</visible>
            </control>
        </control>-->
        <control type="group">
            <description>Group for the description</description>
            <visible>Control.IsVisible(102)</visible>
            <animation effect="slide" start="0,230" end="0,0" delay="800" time="480">WindowOpen</animation>
            <animation effect="slide" end="0,230" start="0,0" time="240">WindowClose</animation>
            <animation effect="slide" start="0,230" end="0,0" time="480">Visible</animation>
            <animation effect="slide" end="0,230" start="0,0" time="240">Hidden</animation>
            <control type="image">
                <visible>!String.IsEqual(Window.Property(Category),Album) + !String.IsEmpty(Container(100).ListItem.Label2) + !Window.IsActive(addonsettings)</visible>
                <top>850</top>
                <width>FullscreenWidth</width>
                <height>230</height>
                <texture>background.png</texture>
                <colordiffuse>ItemDiffuse</colordiffuse>
            </control>
            <control type="textbox">
                <description>Description text</description>
                <left>30</left>
                <top>873</top>
                <width>1860</width>
                <height>180</height>
                <font>font15_textbox</font>
                <aligny>top</aligny>
                <autoscroll delay="10000" time="2500" repeat="10000">!Skin.HasSetting(Disable.AutoScroll) + Control.HasFocus(100)</autoscroll>
                <label>$INFO[Container(100).ListItem.Label2]</label>
            </control>
        </control>
    </controls>
</window>
