<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol always="true">450</defaultcontrol>

    <include>fadeInOut</include>
    <controls>
        <!--background-->
        <include>globalBackground</include>

        <!--fanart (if available)-->
        <control type="image">
            <visible>SubString(ListItem.label,fanart)</visible>
            <include>dimensionsFullscreen</include>
            <texture>$INFO[listitem.thumb]</texture>
            <colordiffuse>6affffff</colordiffuse>
            <aspectratio>stretch</aspectratio>
            <fadetime>400</fadetime>
        </control>
        <control type="image">
            <visible>!SubString(ListItem.label,fanart)</visible>
            <include>dimensionsFullscreen</include>
            <texture>$INFO[listitem.FileNameAndPath]</texture>
            <colordiffuse>ffffffff</colordiffuse>
            <aspectratio>stretch</aspectratio>
            <fadetime>400</fadetime>
        </control>

        <!--poster (if available)-->
        <control type="image">
            <visible>SubString(ListItem.label,remote art)</visible>
            <include>dimensionsFullscreen</include>
            <texture>$INFO[listitem.thumb]</texture>
            <colordiffuse>6affffff</colordiffuse>
            <aspectratio>keep</aspectratio>
            <fadetime>400</fadetime>
        </control>

        <!--file list-->
        <control type="group">
            <posx>col-6-begin</posx>
            <posy>row-3-begin</posy>
            <!--animations-->
            <include>modalDialogInOutVertical</include>
            <control type="image">
                <posx>0</posx>
                <posy>0</posy>
                <width>16-col</width>
                <height>2-row</height>
                <texture>colors/white.png</texture>
                <colordiffuse>highlight</colordiffuse>
                <aspectratio>stretch</aspectratio>
            </control>
            <control type="label" id="411">
                <posx>24</posx>
                <posy>0</posy>
                <width>16-col-gutter</width>
                <height>2-row</height>
                <aligny>center</aligny>
                <font>dialogTitle</font>
                <label>31089</label>
                <textcolor>textActive</textcolor>
                <shadowcolor>-</shadowcolor>
            </control>
            <control type="image">
                <posx>0</posx>
                <posy>2-row</posy>
                <width>16-col</width>
                <height>732</height>
                <texture>colors/black.png</texture>
                <colordiffuse>overlay</colordiffuse>
                <aspectratio>stretch</aspectratio>
            </control>
            <control type="image">
                <posx>12-col</posx>
                <posy>2-row</posy>
                <width>4-col</width>
                <height>732</height>
                <texture>colors/black.png</texture>
                <colordiffuse>overlay</colordiffuse>
                <aspectratio>stretch</aspectratio>
            </control>
            <control type="panel" id="450">
                <posx>6</posx>
                <posy>78</posy>
                <width>12-col</width>
                <height>20-row</height>
                <onright>9000</onright>
                <itemlayout height="75" width="12-col">
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>69</width>
                        <height>69</height>
                        <aspectratio scalediffuse="false">stretch</aspectratio>
                        <texture fallback="colors/offblack.png" border="0">$INFO[Listitem.thumb]</texture>
                    </control>
                    <control type="label">
                        <posx>1-col-indent</posx>
                        <posy>0</posy>
                        <width>11-col-gutter</width>
                        <height>2-row</height>
                        <aligny>center</aligny>
                        <font>itemTitle</font>
                        <textcolor>textActive</textcolor>
                        <shadowcolor>-</shadowcolor>
                        <label>$INFO[ListItem.Label]</label>
                    </control>
                </itemlayout>
                <focusedlayout height="75" width="12-col">
                    <control type="image">
                        <posx>1-col</posx>
                        <posy>0</posy>
                        <width>780</width>
                        <height>69</height>
                        <aspectratio>stretch</aspectratio>
                        <texture>colors/white.png</texture>
                        <bordersize>0</bordersize>
                        <colordiffuse>ffffffff</colordiffuse>
                    </control>
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>69</width>
                        <height>69</height>
                        <aspectratio scalediffuse="false">stretch</aspectratio>
                        <texture fallback="colors/white.png" border="0">$INFO[Listitem.thumb]</texture>
                        <animation type="focus" loop="false" reversible="false">
                            <effect type="fade" time="500"/>
                            <effect type="rotatey" end="360" center="33" tween="back" easing="out" time="1000"/>
                        </animation>
                    </control>
                    <control type="label">
                        <posx>1-col-indent</posx>
                        <posy>0</posy>
                        <width>11-col-gutter</width>
                        <height>2-row</height>
                        <aligny>center</aligny>
                        <font>itemTitle</font>
                        <textcolor>black</textcolor>
                        <selectedcolor>black</selectedcolor>
                        <shadowcolor>-</shadowcolor>
                        <label>$INFO[ListItem.Label]</label>
                    </control>
                </focusedlayout>
            </control>
            <!--larger thumbnail-->
            <control type="image">
                <posx>876</posx>
                <posy>6-row</posy>
                <width>4-col-gutter</width>
                <height>4-col-gutter</height>
                <aspectratio scalediffuse="false" align="left" aligny="center">keep</aspectratio>
                <texture border="0">$INFO[Listitem.icon]</texture>
                <fadetime>200</fadetime>
            </control>
            <!--OK / Cancel / New folder buttons-->
            <control type="panel" id="9000">
                <posx>12-col</posx>
                <posy>2-row</posy>
                <width>4-col</width>
                <height>6-row</height>
                <orientation>vertical</orientation>
                <onleft>450</onleft>
                <itemlayout width="4-col" height="2-row">
                    <control type="label">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>1-col</width>
                        <height>2-row</height>
                        <align>center</align>
                        <aligny>center</aligny>
                        <font>symbolLarge</font>
                        <textcolor>textActive</textcolor>
                        <label>$INFO[ListItem.label2]</label>
                        <shadowcolor>-</shadowcolor>
                    </control>
                    <control type="label">
                        <posx>1-col-indent</posx>
                        <posy>0</posy>
                        <width>5-col-gutter</width>
                        <height>2-row</height>
                        <aligny>center</aligny>
                        <font>buttonTitle</font>
                        <textcolor>textActive</textcolor>
                        <label>$INFO[ListItem.label]</label>
                        <shadowcolor>-</shadowcolor>
                    </control>
                </itemlayout>
                <focusedlayout width="4-col" height="2-row">
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>1-col</width>
                        <height>2-row</height>
                        <aspectratio>stretch</aspectratio>
                        <texture>colors/white.png</texture>
                        <colordiffuse>highlight</colordiffuse>
                        <include>spinFocusIcon</include>
                    </control>
                    <control type="image">
                        <posx>1-col</posx>
                        <posy>0</posy>
                        <width>5-col</width>
                        <height>2-row</height>
                        <aspectratio>stretch</aspectratio>
                        <texture>colors/white.png</texture>
                    </control>
                    <control type="label">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>1-col</width>
                        <height>2-row</height>
                        <align>center</align>
                        <aligny>center</aligny>
                        <font>symbolLarge</font>
                        <textcolor>textActive</textcolor>
                        <label>$INFO[ListItem.label2]</label>
                        <shadowcolor>-</shadowcolor>
                    </control>
                    <control type="label">
                        <posx>1-col-indent</posx>
                        <posy>0</posy>
                        <width>5-col-gutter</width>
                        <height>2-row</height>
                        <aligny>center</aligny>
                        <font>buttonTitle</font>
                        <textcolor>black</textcolor>
                        <label>$INFO[ListItem.label]</label>
                        <shadowcolor>-</shadowcolor>
                    </control>
                </focusedlayout>
                <content>
                    <item id="1">
                        <description>Ok Button</description>
                        <label>186</label>
                        <label2></label2>
                        <thumb>-</thumb>
                        <onclick>SendClick(126,413)</onclick>
                    </item>
                    <item id="2">
                        <description>Cancel Button</description>
                        <label>222</label>
                        <label2></label2>
                        <thumb>-</thumb>
                        <onclick>SendClick(126,414)</onclick>
                    </item>
                    <item id="3">
                        <visible>Control.IsEnabled(415)</visible>
                        <description>New Folder Button</description>
                        <label>31048</label>
                        <label2></label2>
                        <thumb>-</thumb>
                        <onclick>SendClick(126,415)</onclick>
                    </item>
                </content>
            </control>
        </control>
        <!--buttons-->
        <control type="group">
            <visible>false</visible>
            <control type="button" id="413">
                <description>OK</description>
            </control>
            <control type="button" id="414">
                <description>Cancel</description>
            </control>
            <control type="button" id="415">
                <description>New folder</description>
            </control>
        </control>
        <!--debugging-->
        <include>DebugGrid</include>
        <control type="label">
            <include>DialogID</include>
            <label>FileBrowser.xml</label>
        </control>
    </controls>
</window>