<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">6000</defaultcontrol>
	<zorder>999</zorder>
	<onload>Control.Move(6000,$INFO[Container(6000).CurrentItem,-])</onload>
	<onload>Control.Move(6000,1)</onload>
	<include>PropertyIncludes</include>
	<controls>
		<include content="DiffuseMask">
			<param name="color">background_diffuse</param>
		</include>
		<control type="group">
			<!-- Time -->
			<control type="grouplist">
				<include>Visible_Fade</include>
				<right>70</right>
				<height>110</height>
				<bottom>50</bottom>
				<width>1596</width>
				<align>right</align>
				<itemgap>10</itemgap>
				<orientation>horizontal</orientation>
				<usecontrolcoords>true</usecontrolcoords>
				<control type="label">
					<width>auto</width>
					<height>148</height>
					<label>$INFO[System.Time(HH)]</label>
					<font>Light80</font>
					<textcolor>text_white</textcolor>
				</control>
				<control type="label">
					<visible>String.EndsWith(System.Time(ss),0) | String.EndsWith(System.Time(ss),2) | String.EndsWith(System.Time(ss),4) | String.EndsWith(System.Time(ss),6) | String.EndsWith(System.Time(ss),8)</visible>
					<top>62</top>
					<width>auto</width>
					<height>20</height>
					<label>:</label>
					<font>Light60</font>
					<align>center</align>
					<textcolor>text_white</textcolor>
				</control>
				<control type="label">
					<visible>String.EndsWith(System.Time(ss),1) | String.EndsWith(System.Time(ss),3) | String.EndsWith(System.Time(ss),5) | String.EndsWith(System.Time(ss),7) | String.EndsWith(System.Time(ss),9)</visible>
					<top>62</top>
					<width>auto</width>
					<height>20</height>
					<label>:</label>
					<font>Light60</font>
					<align>center</align>
					<textcolor>text_sublabel</textcolor>
				</control>
				<control type="label">
					<width>auto</width>
					<height>148</height>
					<label>$INFO[System.Time(mm)]</label>
					<font>Light80</font>
					<textcolor>text_white</textcolor>
				</control>
			</control>
			<control id="6000" type="fixedlist">
				<include>Dialog_PopupOpenClose</include>
				<visible allowhiddenfocus="true">true</visible>
				<centerleft>50%</centerleft>
				<centertop>50%</centertop>
				<width>1920</width>
				<height>300</height>
				<movement>2</movement>
				<orientation>horizontal</orientation>
				<focusposition>3</focusposition>
				<defaultcontrol>0</defaultcontrol>
				<ondown>6100</ondown>
				<include>ScrollTime</include>
				<animation effect="slide" time="0" end="-135,0" condition="String.IsEqual(Container(6000).NumItems,2) | String.IsEqual(Container(6000).NumItems,4) | String.IsEqual(Container(6000).NumItems,6)">Conditional</animation>
				<itemlayout height="300" width="270">
					<control type="group">
						<left>30</left>
						<top>14</top>
						<control type="image">
							<top>-2</top>
							<left>-2</left>
							<width>246</width>
							<height>246</height>
							<texture diffuse="items/big_circle.png">$INFO[ListItem.Property(color),common/colors/,.jpg]</texture>
						</control>
						<control type="textbox">
							<width>240</width>
							<height>240</height>
							<font>Material70</font>
							<textcolor>text_white</textcolor>
							<align>center</align>
							<aligny>center</aligny>
							<label>$INFO[ListItem.Label2]</label>
						</control>
					</control>
					<control type="label">
						<bottom>0</bottom>
						<left>20</left>
						<width>260</width>
						<height>25</height>
						<align>center</align>
						<aligny>center</aligny>
						<font>Reg22</font>
						<label>$INFO[ListItem.Label]</label>
					</control>
				</itemlayout>
				<focusedlayout height="300" width="270">
					<control type="group">
						<left>30</left>
						<top>14</top>
						<control type="group">
							<include content="Animation_FocusBounce">
								<param name="id" value="6000"/>
							</include>
							<control type="image">
								<top>-2</top>
								<left>-2</left>
								<width>246</width>
								<height>246</height>
								<texture diffuse="items/big_circle.png">$INFO[ListItem.Property(color),common/colors/,.jpg]</texture>
							</control>
							<control type="textbox">
								<width>240</width>
								<height>240</height>
								<font>Material70</font>
								<textcolor>text_white</textcolor>
								<align>center</align>
								<aligny>center</aligny>
								<label>$INFO[ListItem.Label2]</label>
							</control>
							<control type="image">
								<top>-7</top>
								<left>-12</left>
								<width>264</width>
								<height>264</height>
								<texture>items/big_circle_focus.png</texture>
								<colordiffuse>$VAR[AccentColor]</colordiffuse>
								<include>Animation_FocusTextureFade</include>
								<visible>Control.HasFocus(6000)</visible>
							</control>
						</control>
					</control>
					<control type="label">
						<bottom>0</bottom>
						<left>20</left>
						<width>260</width>
						<height>25</height>
						<align>center</align>
						<aligny>center</aligny>
						<font>Reg22</font>
						<label>$INFO[ListItem.Label]</label>
					</control>
				</focusedlayout>
				<content>
					<item>
						<label>$LOCALIZE[10000]</label>
						<label2>&#xf2dc;</label2>
						<onclick>Dialog.Close(all,true)</onclick>
						<onclick>ActivateWindow(home)</onclick>
						<property name="color">orange</property>
						<visible>!Window.IsVisible(loginscreen) + !Window.IsVisible(home)</visible>
					</item>
					<item>
						<label>$LOCALIZE[5]</label>
						<label2>&#xf493;</label2>
						<onclick>Dialog.Close(all,true)</onclick>
						<onclick>ActivateWindow(settings)</onclick>
						<property name="color">blue</property>
						<visible>!Window.IsVisible(loginscreen) + !Window.IsVisible(settings) + !Skin.HasSetting(HidePowerSettings)</visible>
					</item>
					<item>
						<label>$LOCALIZE[13012]</label>
						<label2>&#xf206;</label2>
						<onclick>Quit()</onclick>
						<visible>System.Platform.Android | [System.ShowExitButton + [!Skin.HasSetting(HidePowerExit) | Window.IsVisible(loginscreen)]]</visible>
						<property name="color">green</property>
					</item>
					<item>
						<label>$LOCALIZE[13016]</label>
						<label2>&#xf425;</label2>
						<onclick>Powerdown()</onclick>
						<visible>System.CanPowerDown + [!Skin.HasSetting(HidePowerOff) | Window.IsVisible(loginscreen)]</visible>
						<property name="color">red</property>
					</item>
					<item>
						<label>$LOCALIZE[20150]</label>
						<label2>&#xf51b;</label2>
						<onclick>AlarmClock(shutdowntimer,Shutdown())</onclick>
						<visible>!System.HasAlarm(shutdowntimer) + !Skin.HasSetting(HidePowerTimer)</visible>
						<visible>System.CanPowerDown | System.CanSuspend | System.CanHibernate</visible>
						<property name="color">red</property>
					</item>
					<item>
						<label>$LOCALIZE[20151] $INFO[System.AlarmPos,(,)]</label>
						<label2>&#xf51e;</label2>
						<onclick>CancelAlarm(shutdowntimer)</onclick>
						<visible>System.HasAlarm(shutdowntimer) + !Skin.HasSetting(HidePowerTimer)</visible>
						<property name="color">grey</property>
					</item>
					<item>
						<label>$LOCALIZE[13011]</label>
						<label2>&#xf903;</label2>
						<onclick>Suspend()</onclick>
						<visible>System.CanSuspend + [!Skin.HasSetting(HidePowerSuspend) | Window.IsVisible(loginscreen)]</visible>
						<property name="color">lila</property>
					</item>
					<item>
						<label>$LOCALIZE[13010]</label>
						<label2>&#xf903;</label2>
						<onclick>Hibernate()</onclick>
						<visible>System.CanHibernate + [!Skin.HasSetting(HidePowerHibernate) | Window.IsVisible(loginscreen)]</visible>
						<property name="color">lila</property>
					</item>
					<item>
						<label>$LOCALIZE[13013]</label>
						<label2>&#xf708;</label2>
						<onclick>Reset()</onclick>
						<visible>System.CanReboot + [!Skin.HasSetting(HidePowerReboot) | Window.IsVisible(loginscreen)]</visible>
						<property name="color">turquoise</property>
					</item>
					<item>
						<label>$LOCALIZE[31412]</label>
						<label2>&#xf708;</label2>
						<onclick>RestartApp()</onclick>
						<visible>System.CanReboot + [!Skin.HasSetting(HidePowerReboot) | Window.IsVisible(loginscreen)]</visible>
						<vibible>[System.HasAddon(service.libreelec.settings) | System.HasAddon(service.coreelec.settings)]</vibible>
						<property name="color">turquoise</property>
					</item>
					<item>
						<label>$LOCALIZE[13013] (NAND)</label>
						<label2>&#xf708;</label2>
						<onclick>Dialog.Close(all,true)</onclick>
						<onclick>System.ExecWait("/usr/sbin/rebootfromnand")</onclick>
                        <onclick>Reset()</onclick>
						<visible>System.CanReboot + [!Skin.HasSetting(HidePowerRebootNAND) | Window.IsVisible(loginscreen)] + [System.HasAddon(service.libreelec.settings) | System.HasAddon(service.coreelec.settings)]</visible>
						<property name="color">turquoise</property>
					</item>
					<item>
						<label>$LOCALIZE[13017]</label>
						<label2>&#xf426;</label2>
						<onclick>InhibitIdleShutdown(true)</onclick>
						<visible>System.HasShutdown + !System.IsInhibit + !Skin.HasSetting(HidePowerIdleShutdown)</visible>
						<property name="color">lightgrey</property>
					</item>
					<item>
						<label>$LOCALIZE[13018]</label>
						<label2>&#xf426;</label2>
						<onclick>InhibitIdleShutdown(false)</onclick>
						<visible>System.HasShutdown + System.IsInhibit + !Skin.HasSetting(HidePowerIdleShutdown)</visible>
						<property name="color">lightgrey</property>
					</item>
					<item>
						<label>$LOCALIZE[31226]</label>
						<label2>&#xf004;</label2>
						<onclick>Dialog.Close(all,true)</onclick>
						<onclick>RunScript(plugin.video.embycon,0,?mode=CHANGE_USER)</onclick>
						<visible>System.HasAddon(plugin.video.embycon) + !String.IsEmpty(Window(Home).Property(plugin.video.embycon-userid)) + !Window.IsVisible(loginscreen)</visible>
						<property name="color">accent</property>
					</item>
					<item>
						<label>$LOCALIZE[31225]</label>
						<label2>&#xf004;</label2>
						<onclick>Dialog.Close(all,true)</onclick>
						<onclick>RunScript(plugin.video.embycon,0,?mode=CHANGE_USER)</onclick>
						<visible>System.HasAddon(plugin.video.embycon) + String.IsEmpty(Window(Home).Property(plugin.video.embycon-userid)) + !Window.IsVisible(loginscreen)</visible>
						<property name="color">accent</property>
					</item>
					<item>
						<label>$LOCALIZE[20126] $INFO[system.profilename]</label>
						<label2>&#xf5fd;</label2>
						<onclick>Dialog.Close(all,true)</onclick>
						<onclick>System.LogOff</onclick>
						<visible>System.HasLoginScreen | Integer.IsGreater(System.ProfileCount,1)</visible>
						<visible>System.Loggedon</visible>
						<property name="color">accent</property>
					</item>
					<item>
						<label>$LOCALIZE[20046]</label>
						<label2>&#xf88e;</label2>
						<onclick>mastermode</onclick>
						<visible>System.HasLocks + System.IsMaster + !Window.IsVisible(loginscreen)</visible>
						<property name="color">accent</property>
					</item>
					<item>
						<label>$LOCALIZE[20045]</label>
						<label2>&#xf88e;</label2>
						<onclick>mastermode</onclick>
						<visible>System.HasLocks + !System.IsMaster + !Window.IsVisible(loginscreen)</visible>
						<property name="color">accent</property>
					</item>
				</content>
			</control>
			<!-- Player controls -->
			<control type="group">
				<include>Visible_Fade</include>
				<visible>Player.HasMedia + !Player.HasGame</visible>
				<left>70</left>
				<height>110</height>
				<bottom>50</bottom>
				<width>1400</width>
				<control type="label">
					<bottom>50</bottom>
					<height>23</height>
					<align>left</align>
					<label>$VAR[PlayerFullLabel]</label>
					<font>Reg24</font>
					<textcolor>ffbfbcbb</textcolor>
				</control>
				<control type="grouplist" id="6100">
					<left>-12</left>
					<bottom>-9</bottom>
					<height>50</height>
					<defaultcontrol always="true">6103</defaultcontrol>
					<itemgap>5</itemgap>
					<orientation>horizontal</orientation>
					<align>left</align>
					<include>FocusBounce</include>
					<onup>6000</onup>
					<onright>noop</onright>
					<onleft>noop</onleft>
					<control type="button" id="6101">
						<include content="PlayerButtons">
							<param name="type" value="previous"/>
						</include>
						<onclick>PlayerControl(Previous)</onclick>
						<visible>!VideoPlayer.Content(livetv) + !String.StartsWith(Player.Filenameandpath,pvr://)</visible>
					</control>
					<control type="togglebutton" id="6103">
						<include content="PlayerButtons">
							<param name="type" value="play"/>
							<param name="alt" value="pause"/>
						</include>
						<selected>!Player.Paused + !Player.Forwarding + !Player.Rewinding + !Player.Seeking</selected>
						<onclick>PlayerControl(Play)</onclick>
						<visible>!VideoPlayer.Content(livetv) | PVR.CanRecordPlayingChannel</visible>
					</control>
					<control type="button" id="6104">
						<include content="PlayerButtons">
							<param name="type" value="stop"/>
						</include>
						<onclick>PlayerControl(Stop)</onclick>
					</control>
					<control type="button" id="6106">
						<include content="PlayerButtons">
							<param name="type" value="next"/>
						</include>
						<onclick>PlayerControl(Next)</onclick>
						<visible>!VideoPlayer.Content(livetv) + !String.StartsWith(Player.Filenameandpath,pvr://)</visible>
					</control>
					<control type="button" id="6107">
						<colordiffuse>$VAR[PlayerRecordIconColor]</colordiffuse>
						<include content="PlayerButtons">
							<param name="type" value="rec"/>
						</include>
						<onclick>PVR.ToggleRecordPlayingChannel</onclick>
						<selected>PVR.IsRecordingPlayingChannel</selected>
						<visible>PVR.CanRecordPlayingChannel</visible>
						<visible>VideoPlayer.Content(livetv)</visible>
					</control>
				</control>
			</control>
		</control>
	</controls>
</window>
