<?xml version="1.0" encoding="UTF-8"?>
<includes>
    <include file="SkinSettings_HomeMenu.xml" />
    <include file="SkinSettings_ExitMenu.xml" />
    <include file="SkinSettings_Media.xml" />

    <include name="ResetPageButtonForSkinSettings">
        <param name="id" default="0" />
        <param name="resetbuttonid" default="0" />
        
        <definition>
            <control type="button" id="$PARAM[id]">
                <width>1100</width>
                <height>40</height>
                <align>left</align>
                <label>$LOCALIZE[10041]</label>
                <onclick>SetProperty(DialogTitle,$LOCALIZE[31898],1189)</onclick>
                <onclick>SetProperty(DialogMessage,$LOCALIZE[31899],1189)</onclick>
                <onclick>SetProperty(DialogAction,SetFocus($PARAM[resetbuttonid]),1189)</onclick>
                <onclick>ActivateWindow(1189)</onclick>
            </control>
        </definition>
    </include>

    <include name="LabelForSkinSettings">
        <param name="id" default="0" />
        <param name="label" default="" />
        
        <definition>
            <control type="label" id="$PARAM[id]">
                <width>1100</width>
                <height>40</height>
                <font>NormalButtonFont</font>
                <textcolor>$VAR[BackgroundColor]</textcolor>
                <align>left</align>
                <label>$PARAM[label]</label>
            </control>
        </definition>
    </include>

    <include name="SpacerForSkinSettings">
        <param name="id" default="0" />
        
        <definition>
            <control type="label" id="$PARAM[id]">
                <width>1100</width>
                <height>20</height>
                <label>-</label>
            </control>
        </definition>
    </include>

    <include name="ColorSettingButtonForSkinSettings">
        <param name="id" default="0" />
        <param name="label" default="-" />
        <param name="enable" default="false" />
        <param name="colorsetting" default="-" />
        <param name="relatedcolorsetting" default="-" />
        <param name="relatedcolorprefix" default="$NUMBER[80]" />

        <definition>
            <control type="button" id="$PARAM[id]">
                <enable>$PARAM[enable]</enable>
                <width>1100</width>
                <height>40</height>
                <align>left</align>
                <label>$PARAM[label]</label>
                <onclick>SetProperty(DialogRelatedColorPrefix,$PARAM[relatedcolorprefix],1185)</onclick>
                <onclick>SetProperty(DialogTarget,$PARAM[colorsetting],1185)</onclick>
                <onclick>SetProperty(DialogRelatedTarget,$PARAM[relatedcolorsetting],1185)</onclick>
                <onclick>ActivateWindow(1185)</onclick>
            </control>
        </definition>
    </include>

    <include name="ColorPickerButtonForSkinSettings">
        <param name="id" default="0" />
        <param name="posx" default="0" />
        <param name="posy" default="0" />
        <param name="color" default="FFFFFF" />
        <param name="relatedcolorprefix" default="$INFO[Window.Property(DialogRelatedColorPrefix)]" />
        <param name="target" default="Window.Property(DialogTarget)" />
        <param name="relatedtarget" default="Window.Property(DialogRelatedTarget)" />
        <param name="onup" default="Noop" />
        <param name="ondown" default="Noop" />
        <param name="onleft" default="Noop" />
        <param name="onright" default="Noop" />
    
        <definition>
            <control type="group">
                <posx>$PARAM[posx]</posx>
                <posy>$PARAM[posy]</posy>
                <width>100</width>
                <height>80</height>
            
                <control type="image">
                    <visible>Control.HasFocus($PARAM[id])</visible>
                    <posx>-5</posx>
                    <posy>-5</posy>
                    <width>110</width>
                    <height>90</height>
                    <texture colordiffuse="$VAR[MainColor]" border="20">controls/rectangle-fill.png</texture>
                </control>

                <control type="button" id="$PARAM[id]">
                    <posx>5</posx>
                    <posy>5</posy>
                    <width>90</width>
                    <height>70</height>
                    <texturenofocus colordiffuse="FF$PARAM[color]" border="20">controls/rectangle-fill.png</texturenofocus>
                    <texturefocus colordiffuse="FF$PARAM[color]" border="20">controls/rectangle-fill.png</texturefocus>
                    <align>left</align>
                    <label>-</label>
                    <onup>$PARAM[onup]</onup>
                    <ondown>$PARAM[ondown]</ondown>
                    <onleft>$PARAM[onleft]</onleft>
                    <onright>$PARAM[onright]</onright>
                    <onclick>Skin.SetString($INFO[$PARAM[target]],FF$PARAM[color])</onclick>
                    <onclick condition="!String.IsEmpty($PARAM[relatedtarget])">Skin.SetString($INFO[$PARAM[relatedtarget]],$PARAM[relatedcolorprefix]$PARAM[color])</onclick>
                    <onclick>Close</onclick>
                </control>

                <control type="image">
                    <visible>Control.HasFocus($PARAM[id])</visible>
                    <posx>-1</posx>
                    <posy>-1</posy>
                    <width>102</width>
                    <height>82</height>
                    <texture colordiffuse="FF$PARAM[color]" border="20">controls/rectangle-fill.png</texture>
                </control>
            </control>
        </definition>
    </include>

    <include name="ItemsForButtonListInSkinSettings">
        <param name="listid" default="0" />
    
        <definition>
            <itemlayout height="40">
                <include content="ItemForButtonListInSkinSettings">
                    <param name="textcolor" value="$VAR[MainColor]" />
                    <param name="backgroundcolor" value="$VAR[BackgroundColor]" />
                </include>
            </itemlayout>
                
            <focusedlayout height="40">
                <control type="group">
                    <visible>Control.HasFocus($PARAM[listid])</visible>
                    <include content="ItemForButtonListInSkinSettings">
                        <param name="textcolor" value="$VAR[BackgroundColor]" />
                        <param name="backgroundcolor" value="$VAR[MainColor]" />
                    </include>
                </control>
                <control type="group">
                    <visible>!Control.HasFocus($PARAM[listid])</visible>
                    <include content="ItemForButtonListInSkinSettings">
                        <param name="textcolor" value="$VAR[BackgroundColor]" />
                        <param name="backgroundcolor" value="$VAR[SelectColor]" />
                    </include>
                </control>
            </focusedlayout>
        </definition>
    </include>

    <include name="ItemForButtonListInSkinSettings">
        <param name="textcolor" default="$VAR[MainColor]" />
        <param name="backgroundcolor" default="$VAR[BackgroundColor]" />
        <param name="backgroundcoverage" default="false" />
    
        <definition>
            <control type="image">
                <visible>$PARAM[backgroundcoverage]</visible>
                <width>480</width>
                <height>40</height>
                <texture colordiffuse="$PARAM[backgroundcolor]" border="20">controls/rectangle-fill.png</texture>
                <aspectratio>stretch</aspectratio>
            </control>
            <control type="image">
                <width>480</width>
                <height>40</height>
                <texture colordiffuse="$PARAM[backgroundcolor]" border="20">controls/rectangle-fill.png</texture>
                <aspectratio>stretch</aspectratio>
            </control>
            <control type="label">
                <posx>20</posx>
                <width>440</width>
                <height>40</height>
                <font>NormalButtonFont</font>
                <textcolor>$PARAM[textcolor]</textcolor>
                <label>$INFO[ListItem.Label]</label>
            </control>
        </definition>
    </include>

    <include name="ItemForHomeOptionListInSkinSettings">
        <param name="width" default="1100" />
        <param name="textwidth" default="1060" />
        <param name="radioposx" default="1040" />
        <param name="textcolor" default="$VAR[MainColor]" />
        <param name="radiobuttoncolor" default="$VAR[SecondaryColor]" />
        <param name="backgroundcolor" default="$VAR[BackgroundColor]" />
        <param name="backgroundcoverage" default="false" />

        <definition>
            <control type="image">
                <visible>$PARAM[backgroundcoverage]</visible>
                <posx>0</posx>
                <posy>0</posy>
                <width>$PARAM[width]</width>
                <height>40</height>
                <texture colordiffuse="$VAR[BackgroundColor]" border="20">controls/rectangle-fill.png</texture>
            </control>
            <control type="image">
                <posx>0</posx>
                <posy>0</posy>
                <width>$PARAM[width]</width>
                <height>40</height>
                <texture colordiffuse="$PARAM[backgroundcolor]" border="20">controls/rectangle-fill.png</texture>
            </control>

            <control type="label">
                <posx>20</posx>
                <posy>0</posy>
                <width>$PARAM[textwidth]</width>
                <height>40</height>
                <font>NormalButtonFont</font>
                <textcolor>$PARAM[textcolor]</textcolor>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[ListItem.Label]</label>
            </control>
                    
            <control type="image">
                <visible>Substring(ListItem.Property(Active),T,left)</visible>
                <posx>$PARAM[radioposx]</posx>
                <posy>0</posy>
                <width>40</width>
                <height>40</height>
                <texture colordiffuse="$PARAM[radiobuttoncolor]" border="20">controls/circle-dot.png</texture>
            </control>
            <control type="image">
                <visible>!Substring(ListItem.Property(Active),T,left)</visible>
                <posx>$PARAM[radioposx]</posx>
                <posy>0</posy>
                <width>40</width>
                <height>40</height>
                <texture colordiffuse="$PARAM[radiobuttoncolor]" border="20">controls/circle-clear.png</texture>
            </control>
        </definition>
    </include>

    <include name="BusyDialogForSkinSettings">
        <definition>

            <control type="group">
                <visible>!StringCompare(Skin.String(Revolve.Configuration),4.1.1)</visible>
                <posy>PosYForProgressDialog</posy>

                <include content="WindowForDialog">
                    <param name="height" value="HeightForProgressDialog" />
                    <param name="headerlabel" value="$LOCALIZE[20186]" />
                </include>

                <include content="DefaultBusyAnimationForProgressBar">
                    <param name="posx" value="145" />
                    <param name="posy" value="20" />
                </include>

                <control type="group">
                    <visible>!Skin.HasSetting(RevolveConfiguration) + String.IsEmpty(Skin.String(Revolve.Configuration))</visible>

                    <include content="TextboxForDialog">
                        <param name="posy" value="80" />
                        <param name="height" value="120" />
                        <param name="textboxid" value="9" />
                        <param name="scrollbarid" value="19" />
                        <param name="label" value="$LOCALIZE[31263]" />
                        <param name="onleft" value="9000" />
                    </include>
                </control>
                
                <control type="group">
                    <visible>Skin.HasSetting(RevolveConfiguration) | StringCompare(Skin.String(Revolve.Configuration),3.0.2)</visible>

                    <include content="TextboxForDialog">
                        <param name="posy" value="80" />
                        <param name="height" value="120" />
                        <param name="textboxid" value="9" />
                        <param name="scrollbarid" value="19" />
                        <param name="label" value="$LOCALIZE[31264]" />
                        <param name="onleft" value="9000" />
                    </include>
                </control>
            </control>
        </definition>
    </include>
</includes>
