<?xml version="1.0" encoding="UTF-8"?>
<includes>
    <include name="ItemForProfileListForSettings">
        <param name="backgroundcolor" default="$VAR[BackgroundColor]" />
        <param name="textcolor" default="$VAR[MainColor]" />

        <definition>
            <control type="image">
                <width>1100</width>
                <height>70</height>
                <aspectratio>stretch</aspectratio>
                <texture colordiffuse="$PARAM[backgroundcolor]" border="20">controls/rectangle-fill.png</texture>
            </control>
            
            <control type="group">
                <visible>!String.IsEmpty(ListItem.Label2)</visible>
                <control type="label">
                    <posx>20</posx>
                    <posy>5</posy>
                    <width>1060</width>
                    <height>30</height>
                    <font>NormalButtonFont</font>
                    <textcolor>$PARAM[textcolor]</textcolor>
                    <label>$INFO[ListItem.Label]</label>
                </control>
                <control type="label">
                    <posx>20</posx>
                    <posy>35</posy>
                    <width>1060</width>
                    <height>30</height>
                    <font>DetailListItemFont</font>
                    <textcolor>$PARAM[textcolor]</textcolor>
                    <label>$INFO[ListItem.Label2]</label>
                </control>
            </control>
            
            <control type="group">
                <visible>String.IsEmpty(ListItem.Label2)</visible>
                <control type="label">
                    <posx>20</posx>
                    <posy>15</posy>
                    <width>1060</width>
                    <height>40</height>
                    <font>NormalButtonFont</font>
                    <textcolor>$PARAM[textcolor]</textcolor>
                    <label>$INFO[ListItem.Label]</label>
                </control>
            </control>
        </definition>
    </include>    

    <include name="CleanLeftRingForSettings">
        <definition>
            <animation effect="slide" tween="quadratic" easing="out" start="-1000,0" end="0,0" time="500" reversible="false">WindowOpen</animation>
            <animation effect="slide" delay="500" tween="quadratic" easing="in" start="0,0" end="-1000,0" time="500" reversible="false">WindowClose</animation>

            <control type="image">
                <posx>-140</posx>
                <width>900</width>
                <height>1080</height>
                <texture background="true" diffuse="elements/ring-maskleft.png">white.png</texture>
                <aspectratio scalediffuse="false">scale</aspectratio>
                <colordiffuse>$VAR[MainColor]</colordiffuse>
            </control>

            <control type="image">
                <posx>-140</posx>
                <width>900</width>
                <height>1080</height>
                <texture>elements/ring-ringsleft.png</texture>
            </control>
        </definition>
    </include>
    
    <include name="ButtonLeftRingForSettings">
        <definition>
            <animation effect="slide" tween="quadratic" easing="out" start="-1000,0" end="0,0" time="500" reversible="false">WindowOpen</animation>
            <animation effect="slide" delay="500" tween="quadratic" easing="in" start="0,0" end="-1000,0" time="500" reversible="false">WindowClose</animation>

            <control type="image">
                <posx>-140</posx>
                <width>900</width>
                <height>1080</height>
                <texture diffuse="elements/ring-maskleft.png">white.png</texture>
                <aspectratio scalediffuse="false">scale</aspectratio>
                <colordiffuse>$VAR[MainColor]</colordiffuse>
            </control>
            <control type="image">
                <posx>20</posx>
                <posy>540</posy>
                <width>520</width>
                <height>440</height>
                <fadetime>200</fadetime>
                <texture colordiffuse="$VAR[BackgroundColor]" fallback="white.png">elements/poster-mask.png</texture>
                <aspectratio>stretch</aspectratio>
            </control>
            <control type="image">
                <posx>-140</posx>
                <width>900</width>
                <height>1080</height>
                <texture>elements/ring-ringsleft.png</texture>
            </control>
        </definition>
    </include>

    <include name="WindowAnimationForSettings">
        <definition>
            <animation effect="slide" tween="quadratic" easing="out" start="-2000,0" end="0,0" time="500" reversible="false">WindowOpen</animation>
            <animation effect="slide" delay="500" tween="quadratic" easing="in" start="0,0" end="-2000,0" time="500" reversible="false">WindowClose</animation>
        </definition>
    </include>
    
    <include name="BackgroundAnimationForSettings">
        <definition>
            <control type="group">
                <visible>IntegerGreaterThan(Skin.String(Background.Animation.Level),2)</visible>
                <animation effect="slide" tween="quadratic" easing="out" start="-1000,0" end="0,0" time="500" reversible="false">WindowOpen</animation>
                <animation effect="slide" delay="500" tween="quadratic" easing="in" start="0,0" end="-1000,0" time="500" reversible="false">WindowClose</animation>
                
                <include content="OrbitCircle">
                    <param name="posx" value="-140" />
                    <param name="posy" value="750" />
                    <param name="size" value="60" />
                    <param name="radius" value="800" />
                    <param name="time" value="40000" />
                </include>
            </control>
            
            <control type="group">
                <visible>IntegerGreaterThan(Skin.String(Background.Animation.Level),2)</visible>
                <animation effect="slide" tween="quadratic" easing="out" start="-1000,0" end="0,0" time="500" reversible="false">WindowOpen</animation>
                <animation effect="slide" delay="500" tween="quadratic" easing="in" start="0,0" end="-1000,0" time="500" reversible="false">WindowClose</animation>

                <include content="OrbitCircle">
                    <param name="posx" value="-140" />
                    <param name="posy" value="750" />
                    <param name="size" value="20" />
                    <param name="radius" value="1200" />
                    <param name="time" value="20000" />
                    <param name="direction" value="false" />
                </include>

                <include content="OrbitCircle">
                    <param name="posx" value="-140" />
                    <param name="posy" value="750" />
                    <param name="size" value="10" />
                    <param name="radius" value="1300" />
                    <param name="time" value="17000" />
                </include>
                
                <include content="OrbitCircle">
                    <param name="posx" value="-140" />
                    <param name="posy" value="750" />
                    <param name="size" value="25" />
                    <param name="radius" value="1700" />
                    <param name="time" value="24000" />
                </include>
            </control>
        </definition>
    </include>
</includes>
