<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol>50</defaultcontrol>
	
	<onload>ClearProperty(MediaMenu,Home)</onload>
	
	<menucontrol>9051</menucontrol>
	<views>50</views>
	<controls>
		<include>CommonBackground</include>
				<control type="image">
					<left>-30</left>
					<top>-30</top>
					<width>2040</width>
					<height>1277</height>
					<texture background="true">black.png</texture>
					<animation effect="fade" end="85" condition="true">Conditional</animation>
				</control>
		<control type="group">
			<description>Recordings group</description>
			<visible>Control.IsVisible(50)</visible>
			<include>WindowOpenCloseAnimation</include>
			<left>60</left>
			<top>-40</top>
			<control type="list" id="50">
				<top>180</top>
				<width>1020</width>
				<height>840</height>
				<onleft>SetProperty(MediaMenu,True,home)</onleft>
				<onleft>SetFocus(9050)</onleft>
				<onright>72</onright>
				<onup>50</onup>
				<ondown>50</ondown>
				<viewtype label="535">list</viewtype>
				<pagecontrol>72</pagecontrol>
				<scrolltime tween="quadratic">200</scrolltime>
				<itemlayout height="60" width="1140">
					<control type="image">
						<left>-15</left>
						<top>4</top>
						<width>105</width>
						<height>52</height>
						<aspectratio>keep</aspectratio>
						<texture background="true" fallback="views/list/DefaultVideo.png">$INFO[ListItem.Icon]</texture>
					</control>
					<control type="label">
						<left>90</left>
						<top>12</top>
						<width>860</width>
						<height>35</height>
						<font>font15</font>
						<textcolor>grey2</textcolor>
						<selectedcolor>selected</selectedcolor>
						<label>$INFO[ListItem.Label]</label>
					</control>
					<control type="label">
						<left>50</left>
						<width>890</width>
						<height>60</height>
						<font>font14</font>
						<align>right</align>
						<textcolor>grey2</textcolor>
						<selectedcolor>selected</selectedcolor>
						<label>$INFO[ListItem.Date]</label>
					</control>
					<control type="image">
						<left>962</left>
						<width>60</width>
						<height>62</height>
						<aspectratio>keep</aspectratio>
						<visible>String.IsEqual(ListItem.Overlay,OverlayWatched.png)</visible>
						<texture colordiffuse="DDff0303">$VAR[watched_style]</texture>
					</control>
				</itemlayout>
				<focusedlayout height="60" width="1140">
					<control type="image">
						<width>1020</width>
						<height>60</height>
						<texture border="4">listselect_fo.png</texture>
						<visible>Control.HasFocus(50)</visible>
						<include>VisibleFadeAnimation</include>
					</control>
					<control type="image">
						<left>-15</left>
						<top>4</top>
						<width>105</width>
						<height>52</height>
						<aspectratio>keep</aspectratio>
						<texture background="true" fallback="views/list/DefaultVideo.png">$INFO[ListItem.Icon]</texture>
					</control>
					<control type="label">
						<left>90</left>
						<top>12</top>
						<width>900</width>
						<height>35</height>
						<font>font15</font>
						<textcolor>white</textcolor>
						<selectedcolor>selected</selectedcolor>
						<label>$INFO[ListItem.Label]</label>
						<animation effect="fade" start="100" end="70" time="300" tween="sine" easing="inout" condition="!Control.HasFocus(50)">Conditional</animation>
					</control>
					<control type="label">
						<left>50</left>
						<width>890</width>
						<height>60</height>
						<font>font14</font>
						<align>right</align>
						<textcolor>white</textcolor>
						<selectedcolor>selected</selectedcolor>
						<label>$INFO[ListItem.Date]</label>
						<animation effect="fade" start="100" end="70" time="300" tween="sine" easing="inout" condition="!Control.HasFocus(50)">Conditional</animation>
					</control>
					<control type="image">
						<left>962</left>
						<width>60</width>
						<height>62</height>
						<aspectratio>keep</aspectratio>
						<visible>String.IsEqual(ListItem.Overlay,OverlayWatched.png)</visible>
						<texture colordiffuse="DDff0303">$VAR[watched_style]</texture>
					</control>
				</focusedlayout>
			</control>
			<!-- Single Recordings Group - 2 Boxes -->
			<control type="group">
				<visible>!ListItem.IsFolder</visible>
				<top>450</top>
				<left>1054</left>
				<!-- Recording Thumb and Label Top Bar -->
				<control type="group">
					<top>-302</top>
					<control type="group">
						<top>20</top>
						<left>20</left>
						<width>325</width>
						<height>272</height>
						<control type="image">
							<aspectratio align="left" aligny="center">keep</aspectratio>
							<texture background="true" fallback="DefaultVideo.png">$INFO[Container(50).ListItem.Icon]</texture>
							<fadetime>IconCrossfadeTime</fadetime>
							<bordertexture border="20">thumbs/thumb_shadow.png</bordertexture>
							<bordersize>20</bordersize>
						</control>
					</control>
					<!-- TopBar Label -->
					<control type="label">
						<top>30</top>
						<left>340</left>
						<width>360</width>
						<height>62</height>
						<font>font24_title</font>
						<label>[COLOR themecolor]$INFO[ListItem.ChannelName][/COLOR]</label>
					</control>
					<control type="label">
						<top>20</top>
						<width>360</width>
						<left>340</left>
						<height>262</height>
						<font>font12</font>
						<wrapmultiline>true</wrapmultiline>
						<label>$INFO[ListItem.Date][CR][CR]$INFO[ListItem.Duration(mins)]</label>
					</control>
				</control>
				<!-- Plot -->
				<control type="group">
					<left>36</left>
					<control type="grouplist">
						<top>40</top>
						<height>390</height>
						<control type="label">
							<width>700</width>
							<height>40</height>
							<font>font24_title</font>
							<label>[B][COLOR themecolor]$INFO[Container(50).ListItem.Title][/COLOR][/B]</label>
						</control>
						<control type="label">
							<width>700</width>
							<height>34</height>
							<label>[COLOR themecolor]$INFO[Container(50).ListItem.PlotOutline][/COLOR]</label>
							<font>font12</font>
							<visible>!String.IsEmpty(Container(50).ListItem.PlotOutline)</visible>
						</control>
						<control type="label">
							<width>700</width>
							<height>34</height>
							<label>[COLOR themecolor]$LOCALIZE[515]: [/COLOR]$INFO[Container(50).ListItem.Genre]</label>
							<font>font12</font>
						</control>
						<control type="textbox">
							<width>700</width>
							<height>320</height>
							<align>justify</align>
							<label>$INFO[Container(50).ListItem.Plot]</label>
							<font>font13</font>
						</control>
					</control>
				</control>
			</control>
			<!-- RecordingsFolder -->
			<control type="group">
				<visible>ListItem.IsFolder</visible>
				<top>148</top>
				<left>1054</left>
				<control type="group">
					<top>40</top>
					<left>40</left>
					<visible>ListItem.IsFolder</visible>
					<control type="label">
						<width>740</width>
						<height>50</height>
						<label>[COLOR themecolor]$LOCALIZE[19076] ($INFO[Container(5000).NumItems] $LOCALIZE[31025])[/COLOR]</label>
						<font>font16</font>
					</control>
					<control type="group">
						<left>10</left>
						<top>60</top>
						<control type="panel" id="5000">
							<width>580</width>
							<height>362</height>
							<orientation>vertical</orientation>
							<focusedlayout height="40" width="560">
								<control type="label">
									<left>10</left>
									<height>50</height>
									<width>580</width>
									<label>[COLOR themecolor]$INFO[ListItem.Duration(mins)][/COLOR]  -  $INFO[ListItem.Label]</label>
									<font>font12</font>
								</control>
							</focusedlayout>
							<itemlayout height="40" width="560">
								<control type="label">
									<left>10</left>
									<height>50</height>
									<width>580</width>
									<label>[COLOR themecolor]$INFO[ListItem.Duration(mins)][/COLOR]  -  $INFO[ListItem.Label]</label>
									<font>font12</font>
								</control>
							</itemlayout>
							<content>$INFO[ListItem.FolderPath]</content>
						</control>
					</control>
				</control>
			</control>
			<control type="scrollbar" id="72">
				<left>1010</left>
				<top>180</top>
				<width>14</width>
				<height>840</height>
				<onleft>50</onleft>
				<onright>SetProperty(MediaMenu,True,home)</onright>
				<onright>SetFocus(9050)</onright>
				<texturesliderbackground />
				<texturesliderbar colordiffuse="55ffffff" border="1">scrollbar/texturesliderbar2.png</texturesliderbar>
				<texturesliderbarfocus border="1">scrollbar/texturesliderbar2.png</texturesliderbarfocus>
				<showonepage>false</showonepage>
				<orientation>vertical</orientation>
			</control>
			<!-- Recording disk space -->
			<control type="group">
				<top>900</top>
				<left>1054</left>
				<control type="group">
					<left>40</left>
					<control type="label">
						<description>Disk usage text</description>
						<top>50</top>
						<width>700</width>
						<height>20</height>
						<label>[COLOR themecolor]$INFO[PVR.backenddiskspace][/COLOR]</label>
						<align>center</align>
						<font>font13</font>
					</control>
					<control type="progress">
						<description>Disk usage bar</description>
						<top>90</top>
						<left>20</left>
						<width>660</width>
						<height>18</height>>
						<info>PVR.backenddiskspaceprogr</info>
						<midtexture colordiffuse="themecolor">new_pvr/texturebg_white.png</midtexture>
						<texturebg colordiffuse="themecolor" border="3,0,3,0">new_pvr/texturebg_border_white.png</texturebg>
						<visible>!IntegerGreaterThan(PVR.backenddiskspaceprogr,100)</visible>
					</control>
				</control>
			</control>
		</control>
		
		<control type="image">
			<width>100%</width>
			<height>1080</height>
			<texture>black-back.png</texture>
			<animation effect="fade" time="400">Visible</animation>
			<animation effect="fade" time="200">Hidden</animation>
			<visible>Window.IsActive(FileBrowser) | Window.IsActive(PVRGuideInfo) | Window.IsActive(PVRRecordingInfo) | Window.IsActive(PVRTimerSetting) | Window.IsActive(PVRGroupManager) | Window.IsActive(PVRGuideSearch)</visible>
		</control>
		
		<include>PVRMediaMenu</include>
	</controls>
</window>
