<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol always="false">9999</defaultcontrol>
    <onload condition="Skin.hassetting(stopVideoOnMenu) + !Player.HasAudio">PlayerControl(stop)</onload>
    <onload>Skin.SetString(recentitems,video)</onload>
    <animation type="windowClose">
        <effect type="fade" start="100" end="0" time="300"/>
    </animation>
    <controls>
        <include>globalBackground</include>
        <!--page container group-->
        <control type="group">
            <!--window fader-->
            <animation type="conditional" condition="window.next(0) | window.next(1)">
                <effect type="fade" start="100" end="0" time="300"/>
            </animation>
            <!--shift page for certain modal dialogs-->
            <include>modalDialogContentShift</include>
            <!--Main content listing-->
            <control type="group" id="9999">
                <include>contentOpen</include>
                <posx>col-1-begin</posx>
                <posy>row-5-begin</posy>
                <control type="panel" id="50">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>24-col</width>
                    <height>21-row</height>
                    <onleft>9000</onleft>
                    <onright>60</onright>
                    <onback>9000</onback>
                    <pagecontrol>60</pagecontrol>
                    <itemlayout width="24-col" height="2-row">
                        <control type="image">
                            <posx>1-col</posx>
                            <posy>0</posy>
                            <width>23-col</width>
                            <height>69</height>
                            <aspectratio>stretch</aspectratio>
                            <texture border="0">colors/black.png</texture>
                            <colordiffuse>overlay</colordiffuse>
                        </control>
                        <control type="image">
                            <posx>0</posx>
                            <posy>3</posy>
                            <width>66</width>
                            <height>66</height>
                            <aspectratio scalediffuse="false">stretch</aspectratio>
                            <texture fallback="colors/black.png" diffuse="masks/circle.png" border="0">$INFO[Listitem.thumb]</texture>
                        </control>
                        <control type="label">
                            <visible>!isempty(ListItem.playcount) + !ListItem.IsResumable</visible>
                            <posx>16</posx>
                            <posy>2</posy>
                            <width>66</width>
                            <height>66</height>
                            <font>symbolLarge</font>
                            <textcolor>textActive</textcolor>
                            <shadowcolor>-</shadowcolor>
                            <label>✓</label>
                        </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>
                        <control type="label">
                            <right>12</right>
                            <posy>0</posy>
                            <width>12-col</width>
                            <height>2-row</height>
                            <aligny>center</aligny>
                            <align>right</align>
                            <font>itemTitle</font>
                            <textcolor>textActive</textcolor>
                            <shadowcolor>-</shadowcolor>
                            <label>$INFO[ListItem.Date,,   ]$INFO[ListItem.Duration,(,)]</label>
                        </control>
                    </itemlayout>
                    <focusedlayout width="24-col" height="2-row">
                        <control type="image">
                            <posx>1-col</posx>
                            <posy>0</posy>
                            <width>23-col</width>
                            <height>2-row</height>
                            <aspectratio>stretch</aspectratio>
                            <texture border="0">colors/white.png</texture>
                            <colordiffuse>highlight</colordiffuse>
                        </control>
                        <control type="group">
                            <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 type="image">
                                <posx>0</posx>
                                <posy>3</posy>
                                <width>66</width>
                                <height>66</height>
                                <aspectratio scalediffuse="false">stretch</aspectratio>
                                <texture fallback="colors/white.png" diffuse="masks/circle.png" border="0">$INFO[Listitem.thumb]</texture>
                            </control>
                            <control type="label">
                                <visible>!isempty(ListItem.playcount) + !ListItem.IsResumable</visible>
                                <posx>16</posx>
                                <posy>2</posy>
                                <width>66</width>
                                <height>66</height>
                                <font>symbolLarge</font>
                                <textcolor>black</textcolor>
                                <shadowcolor>-</shadowcolor>
                                <label>✓</label>
                            </control>
                        </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>
                            <selectedcolor>textActive</selectedcolor>
                            <shadowcolor>-</shadowcolor>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                        <control type="label">
                            <right>12</right>
                            <posy>0</posy>
                            <width>12-col</width>
                            <height>2-row</height>
                            <aligny>center</aligny>
                            <align>right</align>
                            <font>itemTitle</font>
                            <textcolor>textActive</textcolor>
                            <shadowcolor>-</shadowcolor>
                            <label>$INFO[ListItem.Date,,   ]$INFO[ListItem.Duration,(,)]</label>
                        </control>
                    </focusedlayout>
                </control>
                <!--Additional info-->
                <control type="group">
                    <posx>16-col</posx>
                    <posy>22-row</posy>
                    <control type="progress">
                        <description>Disk usage bar</description>
                        <left>0</left>
                        <top>1</top>
                        <width>8-col</width>
                        <height>1-row</height>
                        <texturebg colordiffuse="textboxInactive">colors/black.png</texturebg>
                        <midtexture colordiffuse="highlight">colors/white.png</midtexture>
                        <info>PVR.backenddiskspaceprogr</info><visible>!IntegerGreaterThan(PVR.backenddiskspaceprogr,100)</visible>
                    </control>
                    <control type="label">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>8-col</width>
                        <font>itemSubTitle</font>
                        <align>center</align>
                        <textcolor>background</textcolor>
                        <selectedcolor>textActive</selectedcolor>
                        <shadowcolor>-</shadowcolor>
                        <label>$INFO[Pvr.BackendDiskSpace]</label>
                    </control>
                </control>
            </control>
            <!--page scrollbar-->
            <control type="group" id="9400">
                <visible>Control.IsVisible(60)</visible>
                <animation effect="fade" start="100" end="0" time="100" condition="!controlgroup(9400).hasfocus">conditional</animation>
                <control type="scrollbar" id="60">
                    <posx>52r</posx>
                    <posy>row-6-begin</posy>
                    <height>20-row</height>
                    <onleft>9999</onleft>
                    <onback>9999</onback>
                </control>
            </control>
            <!--Folder titles-->
            <control type="group">
                <posx>col-1-begin</posx>
                <posy>row-1-begin</posy>
                <!--source title-->
                <control type="label">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>14-col</width>
                    <font>pageTitle</font>
                    <label>$LOCALIZE[31006] [COLOR highlight]$LOCALIZE[31165][/COLOR]</label>
                    <textcolor>textActive</textcolor>
                </control>
                <control type="label">
                    <posx>0</posx>
                    <posy>45</posy>
                    <width>14-col</width>
                    <font>pageSubTitle</font>
                    <label>$INFO[container.numitems] $LOCALIZE[31165]</label>
                    <textcolor>textActive</textcolor>
                </control>
            </control>
            <!--dateTime-->
            <include>dateTime</include>
        </control>
        <!--mini window-->
        <include>miniVideoPlayer</include>
        <!--hub menu-->
        <include>hubMenu</include>
        <!--debugging-->
        <include>DebugGrid</include>
        <control type="label">
            <include>DialogID</include>
            <label>MyPVRRecordings.xml</label>
        </control>
    </controls>
</window>