<?xml version="1.0" encoding="UTF-8"?>
<window>
	<backgroundcolor>bgcolor</backgroundcolor>
	<onload>SetProperty(SmoothStart,True,Home)</onload>
	<onload condition="String.IsEqual(Window(Home).Property(SmoothStart),True)">SetFocus(52)</onload>
	<onload condition="!String.IsEqual(Window(Home).Property(SmoothStart),True)">SetFocus(10)</onload>
	<animation effect="fade" start="0" end="100" time="750" tween="quadratic">WindowOpen</animation>
	<animation effect="fade" start="100" end="0" time="1000" tween="quadratic">WindowClose</animation>
	<controls>
		<control type="image">
			<include>FullscreenDimensions</include>
			<colordiffuse>$VAR[BG.GlobalColor]</colordiffuse>
			<texture background="true" diffuse="windows/bg/bg_effect_vignette.png">special://skin/extras/backgrounds/default.jpg</texture>
		</control>

		<!-- ============= -->
		<!-- Profiles List -->
		<!-- ============= -->
		<control type="group">
			<include>OpenCloseSlideAnimation</include>
			<visible>![Window.IsActive(LockSettings) | Window.IsActive(ProfileSettings)]</visible>
			<animation effect="fade" start="0" end="100" time="750" tween="quadratic" condition="Control.HasFocus(52)">Conditional</animation>
			 <control type="group">
			 	<centerleft>50%</centerleft>
				<top>80</top>
				<control type="label">
					<description>WeekDay</description>
					<left>0</left>
					<top>110</top>
					<width>100%</width>
					<height>50</height>
					<font>FontSize_65</font>
					<align>center</align>
					<label>$LOCALIZE[20092]</label>
				</control>
				<control type="label">
					<description>Date</description>
					<left>0</left>
					<top>160</top>
					<width>100%</width>
					<height>50</height>
					<font>FontSize_28</font>
					<align>center</align>
					<label>$INFO[System.Date]</label>
					<textcolor>viewsinfo</textcolor>
				</control>
			</control>
			<control type="wraplist" id="52">
			  <centerleft>50%</centerleft>
			  <top>340</top>
			  <width>384</width>
			  <height>164</height>
				<onup>ActivateWindow(shutdownmenu)</onup>
				<ondown>ActivateWindow(shutdownmenu)</ondown>
			  <focusposition>1</focusposition>
			  <scrolltime tween="cubic" easing="out">500</scrolltime>
			  <orientation>horizontal</orientation>
				<itemlayout width="128" height="128">
					<control type="image">
						<left>25</left>
						<top>10</top>
						<width>80</width>
						<height>80</height>
						<texture background="true" colordiffuse="viewsinfo">icons/profiles/profile_panel_big.png</texture>
					</control>
					<control type="image">
						<left>25</left>
						<top>10</top>
						<width>80</width>
						<height>80</height>
						<aspectratio align="center" scalediffuse="false">scale</aspectratio>
						<texture colordiffuse="viewsinfo" fallback="icons/profiles/profile_icon_big.png" diffuse="icons/profiles/profile_diffuse.png">$INFO[ListItem.Icon]</texture>
					</control>
				</itemlayout>
				<focusedlayout width="128" height="128">
					<control type="image">
			      <left>17</left>
			      <top>2</top>
			      <width>96</width>
			      <height>96</height>
						<texture background="true">icons/profiles/profile_panel_big.png</texture>
					</control>
					<control type="image">
			      <left>17</left>
			      <top>2</top>
			      <width>96</width>
			      <height>96</height>
						<aspectratio align="center" scalediffuse="false">scale</aspectratio>
						<texture fallback="icons/profiles/profile_icon_big.png" diffuse="icons/profiles/profile_diffuse.png">$INFO[ListItem.Icon]</texture>
					</control>
				</focusedlayout>
			</control>
			<control type="label">
			  <centerleft>50%</centerleft>
				<top>460</top>
				<height>20</height>
				<width>384</width>
				<font>FontSize_28</font>
				<align>center</align>
			  <label>$INFO[Container(52).ListItem.Label]</label>
			</control>
			<control type="label">
			  <centerleft>50%</centerleft>
				<top>486</top>
				<height>20</height>
				<width>384</width>
				<font>FontSize_18B</font>
				<align>center</align>
			  <label>$INFO[Container(52).ListItem.Label2]</label>
				<textcolor>viewsinfo</textcolor>
			</control>
		</control>
		
		<include>CommonDialogsFadeOutBG</include>

		<!-- ================ -->
		<!-- Top Content Info -->
		<!-- ================ -->
		<control type="group">
			<left>45</left>
			<top>25</top>
			<visible>!Window.IsActive(ShutdownMenu) + ![Window.IsActive(ContextMenu) + !Window.IsActive(LockSettings)]</visible>
			<include>OpenCloseSlideAnimation</include>
			<include>VisibleHiddenSlideAnimation</include>
			<animation effect="fade" start="0" end="100" time="750" tween="quadratic" condition="Control.HasFocus(52)">Conditional</animation>
			<control type="grouplist">
				<include>CommonTopInfoGroupList</include>
				<control type="label">
				  <include>TopBigLabel</include>
					<label>$LOCALIZE[31032]</label>
				</control>
			</control>
			<control type="group">
				<left>68</left>
				<top>45</top>		
				<control type="label">
					<description>User last login</description>
					<width>500</width>
					<height>20</height>
					<font>FontSize_18</font>
					<textcolor>$VAR[Text.GlobalColor]</textcolor>
					<scroll>false</scroll>
					<align>left</align>
					<aligny>center</aligny>
					<label>$INFO[Container(52).CurrentItem,$LOCALIZE[31025] ]$INFO[Container(52).NumItems, $LOCALIZE[31024] ]</label>
				</control>
			</control>
		</control>

		<control type="group">
			<left>25</left>
			<top>40</top>
			<include>OpenCloseSlideAnimation</include>
			<include>VisibleHiddenSlideAnimation</include>
			<include>WeatherAndClock</include>
			<animation effect="fade" start="0" end="100" time="750" tween="quadratic" condition="Control.HasFocus(52)">Conditional</animation>
		</control>

		<!-- ======= -->
		<!-- Welcome -->
		<!-- ======= -->
		<control type="group">
			<animation effect="fade" start="100" end="0" time="350" tween="quadratic" condition="Control.HasFocus(52)">Conditional</animation>
			<control type="group">
			  <left>590</left>
			  <top>220</top>
				<control type="image">
					<width>100</width>
					<height>100</height>
					<aspectratio scalediffuse="false">scale</aspectratio>
				  <texture diffuse="icons/profiles/profile_diffuse.png">$VAR[LogoThumbVar]</texture>
				</control>
				<control type="image">
					<width>100</width>
					<height>100</height>
				  <texture>icons/profiles/profile_panel_big.png</texture>
				</control>
			</control>
			<control type="label">
			  <centerleft>50%</centerleft>
			  <centertop>50%</centertop>
			  <width>100%</width>
			  <height>100%</height>
			  <font>FontSize_50</font>
			  <align>center</align>
			  <label>$LOCALIZE[31042]</label>
			</control>
			<control type="button" id="10">
			  <centerleft>50%</centerleft>
			  <centertop>57%</centertop>
			  <width>100%</width>
			  <height>100%</height>
			  <focusedcolor>viewsinfo</focusedcolor>
			  <font>FontSize_40</font>
			  <align>center</align>
			  <texturefocus></texturefocus>
			  <label>$LOCALIZE[31044]...</label>
			  <onfocus>AlarmClock(Close,SetFocus(52),00:04,silent)</onfocus>
			</control>
		</control>
	</controls>
</window>

