<?xml version="1.0" encoding="UTF-8"?>
<includes>

		<!-- ===================== -->
		<!-- == Weather Details == -->
		<!-- ===================== -->
		<include name="WeatherDetails">
			<control type="group">
				<include>OpenCloseSlideAnimationTwo</include>
				<include>InfoDialogsVisible_ZoomAnimation</include>
				<control type="group">
					<include>VisibleHiddenSlideAnimation</include>
					<visible>Weather.IsFetched + !String.Contains(Window(Weather).Property(Current.ConditionIcon),na) + ![String.IsEmpty(Window(Weather).Property(Current.Condition)) | String.IsEmpty(Window(Weather).Property(Location))]</visible>
					<!-- Left -->
					<control type="grouplist">
						<left>35</left>
						<top>390</top>
						<width>1000</width>
						<height>194</height>
						<itemgap>0</itemgap>
						<align>left</align>
						<orientation>horizontal</orientation>
						<control type="image">
							<description>current weather icon</description>
							<height>194</height>
							<width>194</width>
							<texture>resource://resource.images.weathericons.outline-hd/$INFO[Window.Property(Current.FanartCode)].png</texture>
						</control>
						<control type="label">
							<description>big current temp value</description>
							<height>195</height>
							<width min="10" max="500">auto</width>
							<font>FontSize_140</font>
							<label>[B]$INFO[Window.Property(Current.Temperature)][/B]</label>
						</control>
						<control type="label">
							<description>temperature units value</description>
							<height>125</height>
							<width min="10" max="500">auto</width>
							<font>FontSize_60</font>
							<label>[B]$INFO[System.TemperatureUnits][/B]</label>
						</control>
					</control>
					<control type="grouplist">
						<left>45</left>
						<top>570</top>
						<width>1000</width>
						<height>50</height>
						<itemgap>15</itemgap>
						<align>left</align>
						<orientation>horizontal</orientation>
						<control type="label">
							<description>current condition</description>
							<height>40</height>
							<width min="10" max="500">auto</width>
							<font>FontSize_32B</font>
							<label>$INFO[Window.Property(Current.Condition),,$COMMA]</label>
							<textcolor>viewsinfo</textcolor>
						</control>
						<control type="label">
							<description>Feels Like</description>
							<height>40</height>
							<width min="10" max="500">auto</width>
							<font>FontSize_32B</font>
							<label>$INFO[Window.Property(Current.FeelsLike),$LOCALIZE[402] ]$INFO[System.TemperatureUnits]</label>
							<textcolor>viewsinfo</textcolor>
						</control>
					</control>

					<!-- Right -->
					<control type="group" id="5000">
						<left>695</left>
						<top>70</top>
						<width>520</width>
						<control type="label">
							<left>20</left>
							<top>0</top>
							<height>40</height>
							<width>520</width>
							<font>FontSize_20B</font>
							<align>center</align>
							<textcolor>viewsinfo</textcolor>
							<label>$INFO[System.Date]$COMMA $INFO[System.Time]</label>
						</control>
						<control type="grouplist">
							<left>20</left>
							<top>40</top>
							<width>520</width>
							<height>194</height>
							<itemgap>5</itemgap>
							<orientation>horizontal</orientation>
							<include content="TopGroupInfo">
								<param name="icon" value="icons/weather/rain.png"/>
								<param name="label" value="$INFO[Window(weather).Property(Current.Precipitation)]"/>
							</include>
							<include content="TopGroupInfo">
								<param name="icon" value="icons/weather/humidity.png" />
								<param name="label" value="$INFO[Window(weather).Property(Current.Humidity)]" />
							</include>
							<include content="TopGroupInfo">
								<param name="icon" value="icons/weather/wind.png"/>
								<param name="label" value="$INFO[Window(weather).Property(Current.WindSpeed)]"/>
							</include>
							<include content="TopGroupInfo">
								<param name="icon" value="icons/weather/sunrise.png" />
								<param name="label" value="$INFO[Window(weather).Property(Today.Sunrise)]" />
							</include>
							<include content="TopGroupInfo">
								<param name="icon" value="icons/weather/sunset.png" />
								<param name="label" value="$INFO[Window(weather).Property(Today.Sunset)]" />
							</include>
						</control>
						<control type="group">
							<left>0</left>
							<top>110</top>
							<width>520</width>
							<control type="image">
								<left>20</left>
								<top>60</top>
								<width>520</width>
								<height>366</height>
								<texture border="31">views/other/panel.png</texture>
							</control>
							<control type="image">
								<left>-120</left>
								<top>-112</top>
								<width>800</width>
								<height>720</height>
								<texture background="true" border="1">windows/settings/event_log_seperators.png</texture>
							</control>
							<control type="image">
								<left>30</left>
								<top>101</top>
								<width>246</width>
								<height>1</height>
								<colordiffuse>viewsinfo</colordiffuse>
								<texture border="1">dialogs/other/header_line.png</texture>
							</control>
							<control type="image">
								<left>282</left>
								<top>101</top>
								<width>246</width>
								<height>1</height>
								<colordiffuse>viewsinfo</colordiffuse>
								<texture border="1">dialogs/other/header_line.png</texture>
							</control>
							<control type="grouplist" id="5001">
								<left>30</left>
								<top>51</top>
								<width>504</width>
								<height>260</height>
								<onleft>9000</onleft>
								<onright></onright>
								<onup>9000</onup>
								<ondown>5002</ondown>
								<itemgap>5</itemgap>
								<include>InfoDialogs_TopMenuVars</include>
								<control type="button" id="501">
									<width>246</width>
									<align>center</align>
									<texturefocus border="1" colordiffuse="$VAR[Textures.GlobalColor]">weather/dailyhourly_underline.png</texturefocus>
									<include>TopMenuButton</include>
									<onfocus>SetProperty(weatherlist,1)</onfocus>
									<label>[B]$LOCALIZE[31231][/B]</label>
								</control>
								<control type="button" id="502">
									<width>246</width>
									<align>center</align>
									<texturefocus border="1" colordiffuse="$VAR[Textures.GlobalColor]">weather/dailyhourly_underline.png</texturefocus>
									<include>TopMenuButton</include>
									<onfocus>SetProperty(weatherlist,2)</onfocus>
									<label>[B]$LOCALIZE[33036][/B]</label>
								</control>
							</control>
							<control type="group" id="5002">
								<left>30</left>
								<top>114</top>
								<include content="DailyAndHourlyLists">
									<param name="content" value="WeatherDaily_Forecast"/>
									<param name="visible" value="String.IsEqual(Window(Weather).Property(weatherlist),1)"/>
								</include>
								<include content="DailyAndHourlyLists">
									<param name="content" value="WeatherHourly_Forecast"/>
									<param name="visible" value="String.IsEqual(Window(Weather).Property(weatherlist),2)"/>
								</include>
								<control type="label">
									<left>0</left>
									<top>305</top>
									<width>520</width>
									<height>45</height>
									<font>TextboxFont_15B</font>
									<textcolor>disabled</textcolor>
									<align>center</align>
									<label>[B]$INFO[Window.Property(WeatherProvider)][/B]</label>
								</control>
							</control>
						</control>
					</control>
				</control>
			</control>
		</include>

		<include name="TopGroupInfo">
			<control type="group">
				<width>100</width>
				<height>130</height>
				<control type="image">
					<left>0</left>
					<top>0</top>
					<width>100</width>
					<height>125</height>
					<texture border="31">views/other/panel.png</texture>
				</control>
				<control type="image">
					<left>26</left>
					<top>20</top>
					<height>48</height>
					<width>48</width>
					<colordiffuse>viewsinfo</colordiffuse>
					<texture>$PARAM[icon]</texture>
				</control>
				<control type="image">
					<left>6</left>
					<top>83</top>
					<width>88</width>
					<height>1</height>
					<colordiffuse>viewsinfo</colordiffuse>
					<texture background="true" border="1">dialogs/other/header_line.png</texture>
				</control>
				<control type="label">
					<left>0</left>
					<top>90</top>
					<height>28</height>
					<width>100</width>
					<font>FontSize_18B</font>
					<align>center</align>
					<aligny>center</aligny>
					<label>$PARAM[label]</label>
					<textcolor>viewsinfo</textcolor>
				</control>
			</control>
		</include>

		<include name="DailyAndHourlyLists">
			<control type="panel" id="5003">
				<visible>$PARAM[visible]</visible>
				<left>0</left>
				<top>0</top>
				<width>500</width>
				<height>300</height>
				<onleft>9000</onleft>
				<onright>9000</onright>
				<onup>5001</onup>
				<ondown>5003</ondown>
				<preloaditems>2</preloaditems>
				<viewtype label="535">list</viewtype>
				<pagecontrol>6051</pagecontrol>
				<scrolltime tween="cubic" easing="out">300</scrolltime>
				<itemlayout height="60">
					<control type="image">
						<left>0</left>
						<top>0</top>
						<width>60</width>
						<height>60</height>
						<colordiffuse>viewsinfo</colordiffuse>
						<texture>$INFO[ListItem.Icon]</texture>
					</control>
					<control type="label">
						<left>70</left>
						<top>0</top>
						<width>250</width>
						<height>45</height>
						<font>TextboxFont_18B</font>
						<textcolor>viewsinfo</textcolor>
						<label>$INFO[ListItem.Label]</label>
					</control>
					<control type="label">
						<left>70</left>
						<top>0</top>
						<width>250</width>
						<height>85</height>
						<font>TextboxFont_15B</font>
						<textcolor>viewsinfo</textcolor>
						<label>$INFO[ListItem.Label2]</label>
					</control>
					<control type="label">
						<right>10</right>
						<top>0</top>
						<width>500</width>
						<height>45</height>
						<align>right</align>
						<font>TextboxFont_18B</font>
						<textcolor>viewsinfo</textcolor>
						<label>$INFO[ListItem.Property(Precipitation),,$COMMA ]$INFO[ListItem.Property(HighTemperature)]$INFO[ListItem.Property(LowTemperature), / ]</label>
					</control>
					<control type="label">
						<right>10</right>
						<top>0</top>
						<width>500</width>
						<height>85</height>
						<align>right</align>
						<font>TextboxFont_15B</font>
						<textcolor>viewsinfo</textcolor>
						<label>$INFO[ListItem.Property(Outlook)]</label>
					</control>
				</itemlayout>
				<focusedlayout height="60">
					<control type="group">
						<include>PVRListFocusAnimation</include>
						<control type="image">
							<left>0</left>
							<top>0</top>
							<width>535</width>
							<height>60</height>
							<texture background="true" border="1">buttons/focus.png</texture>
						</control>
						<control type="image">
							<left>0</left>
							<top>0</top>
							<width>60</width>
							<height>60</height>
							<texture>$INFO[ListItem.Icon]</texture>
						</control>
						<control type="label">
							<left>70</left>
							<top>0</top>
							<width>250</width>
							<height>45</height>
							<font>TextboxFont_18B</font>
							<label>$INFO[ListItem.Label]</label>
						</control>
						<control type="label">
							<left>70</left>
							<top>0</top>
							<width>250</width>
							<height>85</height>
							<font>TextboxFont_15B</font>
							<label>$INFO[ListItem.Label2]</label>
						</control>
						<control type="label">
							<right>10</right>
							<top>0</top>
							<width>500</width>
							<height>45</height>
							<align>right</align>
							<font>TextboxFont_18B</font>
							<label>$INFO[ListItem.Property(Precipitation),,$COMMA ]$INFO[ListItem.Property(HighTemperature)]$INFO[ListItem.Property(LowTemperature), / ]</label>
						</control>
						<control type="label">
							<right>10</right>
							<top>0</top>
							<width>500</width>
							<height>85</height>
							<align>right</align>
							<font>TextboxFont_15B</font>
							<label>$INFO[ListItem.Property(Outlook)]</label>
						</control>
					</control>
				</focusedlayout>
				<content>
					<include>$PARAM[content]</include>
				</content>
			</control>
		</include>


		<!-- =================== -->
		<!-- == Weather Items == -->
		<!-- =================== -->
		<include name="WeatherDailyItem">
			<item>
				<icon>$VAR[WeatherDailyResource]$INFO[Window(Weather).Property(Daily.$PARAM[DailyIndex].OutlookIcon)]</icon>
				<label>$INFO[Window(Weather).Property(Daily.$PARAM[DailyIndex].LongDay)]</label>
				<label2>$INFO[Window(Weather).Property(Daily.$PARAM[DailyIndex].ShortDate)]</label2>
				<property name="DailyBG">$INFO[Window(Weather).Property(Daily.$PARAM[DailyIndex].FanartCode),resource://resource.images.weatherfanart.single/,.jpg]</property>
				<property name="Outlook">$INFO[Window(Weather).Property(Daily.$PARAM[DailyIndex].Outlook)]</property>
				<property name="HighTemperature">$INFO[Window(Weather).Property(Daily.$PARAM[DailyIndex].HighTemperature)]</property>
				<property name="LowTemperature">$INFO[Window(Weather).Property(Daily.$PARAM[DailyIndex].LowTemperature)]</property>
				<property name="DewPoint">$INFO[Window(Weather).Property(Daily.$PARAM[DailyIndex].DewPoint)]</property>
				<property name="Humidity">$INFO[Window(Weather).Property(Daily.$PARAM[DailyIndex].Humidity)]</property>
				<onclick condition="!Window.IsVisible(Weather)">ActivateWindow(Weather)</onclick>
				<visible>![String.IsEmpty(Window(Weather).Property(Daily.IsFetched)) | String.IsEmpty(Window(weather).Property(Daily.$PARAM[DailyIndex].Outlook))]</visible>
			</item>
		</include>
		<include name="WeatherDaily_Forecast">
			<include content="WeatherDailyItem">
				<param name="DailyIndex" value="2" />
			</include>
			<include content="WeatherDailyItem">
				<param name="DailyIndex" value="3" />
			</include>
			<include content="WeatherDailyItem">
				<param name="DailyIndex" value="4" />
			</include>
			<include content="WeatherDailyItem">
				<param name="DailyIndex" value="5" />
			</include>
			<include content="WeatherDailyItem">
				<param name="DailyIndex" value="6" />
			</include>
			<include content="WeatherDailyItem">
				<param name="DailyIndex" value="7" />
			</include>
			<include content="WeatherDailyItem">
				<param name="DailyIndex" value="8" />
			</include>
			<include content="WeatherDailyItem">
				<param name="DailyIndex" value="9" />
			</include>
			<include content="WeatherDailyItem">
				<param name="DailyIndex" value="10" />
			</include>
			<include content="WeatherDailyItem">
				<param name="DailyIndex" value="11" />
			</include>
		</include>
	
		<include name="WeatherHourlyItem">
			<item>
				<icon>resource://resource.images.weathericons.outline/$INFO[Window(Weather).Property(Hourly.$PARAM[HourlyIndex].OutlookIcon)]</icon>
				<label>$INFO[Window(Weather).Property(Hourly.$PARAM[HourlyIndex].Time)]</label>
				<label2>$INFO[Window(Weather).Property(Hourly.$PARAM[HourlyIndex].ShortDate)]</label2>
				<property name="HourlyBG">$INFO[Window(Weather).Property(Hourly.$PARAM[HourlyIndex].FanartCode),resource://resource.images.weatherfanart.single/,.jpg]</property>
				<property name="Outlook">$INFO[Window(Weather).Property(Hourly.$PARAM[HourlyIndex].Outlook)]</property>
				<property name="HighTemperature">$INFO[Window(Weather).Property(Hourly.$PARAM[HourlyIndex].Temperature)]</property>
				<property name="LowTemperature">$INFO[Window(Weather).Property(Hourly.$PARAM[HourlyIndex].LowTemperature)]</property>
				<property name="Precipitation">$INFO[Window(Weather).Property(Hourly.$PARAM[HourlyIndex].Precipitation)]</property>
				<property name="Humidity">$INFO[Window(Weather).Property(Hourly.$PARAM[HourlyIndex].Humidity)]</property>
				<onclick condition="!Window.IsVisible(Weather)">ActivateWindow(Weather)</onclick>
				<visible>![String.IsEmpty(Window(Weather).Property(Hourly.IsFetched)) | String.IsEmpty(Window(weather).Property(Hourly.$PARAM[HourlyIndex].Outlook))]</visible>
			</item>
		</include>
		<include name="WeatherHourly_Forecast">
			<include content="WeatherHourlyItem">
				<param name="HourlyIndex" value="2" />
			</include>
			<include content="WeatherHourlyItem">
				<param name="HourlyIndex" value="3" />
			</include>
			<include content="WeatherHourlyItem">
				<param name="HourlyIndex" value="4" />
			</include>
			<include content="WeatherHourlyItem">
				<param name="HourlyIndex" value="5" />
			</include>
			<include content="WeatherHourlyItem">
				<param name="HourlyIndex" value="6" />
			</include>
			<include content="WeatherHourlyItem">
				<param name="HourlyIndex" value="7" />
			</include>
			<include content="WeatherHourlyItem">
				<param name="HourlyIndex" value="8" />
			</include>
			<include content="WeatherHourlyItem">
				<param name="HourlyIndex" value="9" />
			</include>
			<include content="WeatherHourlyItem">
				<param name="HourlyIndex" value="10" />
			</include>
			<include content="WeatherHourlyItem">
				<param name="HourlyIndex" value="11" />
			</include>
		</include>

		<variable name="WeatherFanartType">
			<value condition="Skin.HasSetting(weatherfanart.multi)">/</value>
			<value>$INFO[Skin.String(weatherfanart.ext)]</value>
		</variable>

		<variable name="WeatherFanartName">
			<value condition="!String.IsEmpty(Skin.String(WeatherFanart.name))">$INFO[Skin.String(WeatherFanart.name)]</value>
			<value>$LOCALIZE[231]</value>
		</variable>

		<variable name="WeatherDailyResource">
			<value condition="!Window.IsVisible(Weather)">resource://resource.images.weathericons.outline-hd/</value>
			<value>resource://resource.images.weathericons.outline/</value>
		</variable>

	</includes>