<?xml version="1.0" encoding="UTF-8"?>
<window>
    <views>10</views>
    <defaultcontrol always="false">9999</defaultcontrol>

    <onload condition="!Player.HasAudio">PlayerControl(stop)</onload>
    <onunload>Skin.SetString(showRecentVideoItems,true)</onunload>
    <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>

            <!--initial animation-->
            <animation type="Windowopen">
                <effect type="fade" start="0" end="100" time="300"/>
            </animation>

            <!--Main content listing-->
            <control type="group" id="9999">
                <control type="epggrid" id="10">
                    <description>EPG Grid</description>
                    <posx>col-1-begin</posx>
                    <posy>row-5-begin</posy>
                    <width>24-col</width>
                    <height>22-row</height>
                    <timeblocks>30</timeblocks>
                    <progresstexture border="0,33,18,14">UIControls/PVR-EpgProgressIndicator.png</progresstexture>
                    <rulerunit>6</rulerunit>
                    <onback>9000</onback>
                    <rulerlayout height="2-row" width="216">
                        <control type="label" id="2">
                            <visible>SubString(ListItem.Label,:)</visible>
                            <posx>0</posx>
                            <posy>12</posy>
                            <width>216</width>
                            <height>2-row</height>
                            <font>itemTitle</font>
                            <textcolor>66FFFFFF</textcolor>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                    </rulerlayout>
                    <channellayout height="2-row" width="288">
                        <control type="image">
                            <posx>0</posx>
                            <posy>3</posy>
                            <width>66</width>
                            <height>66</height>
                            <aspectratio scalediffuse="false">scale</aspectratio>
                            <texture fallback="colors/black.png" diffuse="masks/circle.png" border="0">$INFO[Listitem.thumb]</texture>
                        </control>
                        <control type="label">
                            <posx>1-col-indent</posx>
                            <width>4-col-gutter</width>
                            <height>2-row</height>
                            <font>itemTitle</font>
                            <textcolor>textActive</textcolor>
                            <selectedcolor>textActive</selectedcolor>
                            <shadowcolor>-</shadowcolor>
                            <label>$INFO[ListItem.ChannelName]</label>
                        </control>
                    </channellayout>
                    <focusedchannellayout height="2-row" width="288">
                        <control type="image">
                            <posx>1-col</posx>
                            <width>216</width>
                            <height>2-row</height>
                            <texture>colors/white.png</texture>
                            <colordiffuse>highlight</colordiffuse>
                        </control>
                        <control type="image">
                            <posx>0</posx>
                            <posy>3</posy>
                            <width>66</width>
                            <height>66</height>
                            <aspectratio scalediffuse="false">scale</aspectratio>
                            <texture fallback="colors/black.png" diffuse="masks/circle.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>
                            <width>4-col-gutter</width>
                            <height>2-row</height>
                            <font>itemTitle</font>
                            <textcolor>textActive</textcolor>
                            <selectedcolor>textActive</selectedcolor>
                            <shadowcolor>-</shadowcolor>
                            <label>$INFO[ListItem.ChannelName]</label>
                            <scroll>true</scroll>
                        </control>
                    </focusedchannellayout>
                    <itemlayout height="2-row" width="216">
                        <control type="image" id="2">
                            <width>213</width>
                            <height>69</height>
                            <aspectratio>stretch</aspectratio>
                            <texture border="0">colors/black.png</texture>
                            <bordertexture colordiffuse="highlight">colors/white.png</bordertexture>
                            <bordersize>3,0,0,0</bordersize>
                        </control>
                        <control type="label" id="1">
                            <width>204</width>
                            <height>2-row</height>
                            <font>itemTitle</font>
                            <textoffsetx>12</textoffsetx>
                            <textcolor>textActive</textcolor>
                            <selectedcolor>textActive</selectedcolor>
                            <shadowcolor>-</shadowcolor>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                        <control type="image">
                            <visible>ListItem.HasTimer</visible>
                            <posx>12</posx>
                            <posy>6</posy>
                            <width>12</width>
                            <height>12</height>
                            <aspectratio>stretch</aspectratio>
                            <texture border="0" diffuse="masks/circle.png">colors/white.png</texture>
                            <colordiffuse>highlight</colordiffuse>
                            <animation effect="fade" start="30" end="100" time="1000" condition="true" pulse="true">conditional</animation>
                        </control>
                    </itemlayout>
                    <focusedlayout height="2-row" width="216">
                        <control type="image" id="14">
                            <width>213</width>
                            <height>2-row</height>
                            <texture border="0">colors/white.png</texture>
                            <colordiffuse>highlight</colordiffuse>
                        </control>
                        <control type="label" id="1">
                            <width>204</width>
                            <height>2-row</height>
                            <font>itemTitle</font>
                            <textoffsetx>12</textoffsetx>
                            <textcolor>textActive</textcolor>
                            <selectedcolor>textActive</selectedcolor>
                            <shadowcolor>-</shadowcolor>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                    </focusedlayout>
                </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[31080][/COLOR]</label>
                    <textcolor>textActive</textcolor>
                </control>
                <control type="label">
                    <posx>0</posx>
                    <posy>45</posy>
                    <width>14-col</width>
                    <font>regular</font>
                    <label>$INFO[Pvr.BackendChannels] $LOCALIZE[31017]</label>
                    <textcolor>textActive</textcolor>
                </control>
            </control>
            <!--dateTime-->
            <include>dateTime</include>
        </control>
        <!--hub menu-->
        <include>hubMenu</include>
        <include>hubOptions</include>
        <!--debugging-->
        <include>DebugGrid</include>
        <control type="label">
            <include>DialogID</include>
            <label>MyPVRGuide.xml</label>
        </control>
    </controls>
</window>