<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<window>
    <controls>
	<!-- All windows -->
	<control Style="Align Right">
		<description>Date/Time</description>
		<type>group</type>
		<posY>10</posY>
		<layout>StackLayout(3,Vertical,true)</layout>
		<dimColor>ffffffff</dimColor>
		<control>
			<description>Date</description>
			<type>fadelabel</type>
			<id>0</id>
			<label>#(string.format('{0:ddd dd MMM}', cdate(#date)))</label>
			<width>250</width>
			<align>right</align>
			<font>font14</font>
			<textcolor>#amped.textdim.color</textcolor>
		    <visible>string.equals(#skin.amped.dateformat,true)</visible>
			<animation effect="slide" start="900,0" end="0,0" tween="quadratic" time="300" delay="0">WindowOpen</animation>
			<animation effect="slide" start="0,0" end="900,0" tween="quadratic" time="300" delay="0">WindowClose</animation>
		</control>
		<control>
			<description>Date</description>
			<type>fadelabel</type>
			<id>0</id>
			<label>#date</label>
			<width>350</width>
			<align>right</align>
			<font>font14</font>
			<textcolor>#amped.textdim.color</textcolor>
		    <visible>string.equals(#skin.amped.dateformat,false)</visible>
			<animation effect="slide" start="900,0" end="0,0" tween="quadratic" time="300" delay="0">WindowOpen</animation>
			<animation effect="slide" start="0,0" end="900,0" tween="quadratic" time="300" delay="0">WindowClose</animation>
		</control>
		
		<control>
			<description>Time</description>
			<type>fadelabel</type>
			<id>0</id>
			<width>250</width>
			<label>#time</label>
			<align>right</align>
			<font>font14</font>
			<textcolor>#amped.text1nf.color</textcolor>
			<animation effect="slide" start="900,0" end="0,0" tween="quadratic" time="300" delay="0">WindowOpen</animation>
			<animation effect="slide" start="0,0" end="900,0" tween="quadratic" time="300" delay="0">WindowClose</animation>
		</control>
	</control>
        <!-- MPEI Update Available -->
        <control>
			<description>Extension Update Available (When no weather enabled)</description>
			<type>image</type>
			<id>0</id>
			<posX>20</posX>
            <posY>10</posY>
			<width>40</width>
            <height>40</height>
			<align>right</align>
			<texture>extension_update.png</texture>
			<keepaspectratio>yes</keepaspectratio>
		    <visible>!string.equals(#mpei.updates,)+plugin.isenabled(Extensions)+!Plugin.IsEnabled(yrWeather)+!Plugin.IsEnabled(World Weather Lite)+!Plugin.IsEnabled(World Weather)+!Window.IsVisible(0)+!Window.IsVisible(34)+!Window.IsVisible(35)+!Window.IsVisible(8888)+!Window.IsVisible(88883)+!Window.IsVisible(88884)+!Window.IsVisible(88885)+!Window.IsVisible(88886)+!Window.IsVisible(88887)+!Window.IsVisible(888811)</visible>
            <animation effect="slide" start="-200,0" end="0,0" tween="quadratic" time="200" delay="100">WindowOpen</animation>
            <animation effect="slide" start="0,0" end="-200,0" tween="quadratic" time="200" delay="100">WindowClose</animation>
		</control>
        <!-- World Weather -->
        <control>
            <description>Temperature</description>
            <type>label</type>
            <id>0</id>
			<posX>70</posX>
            <posY>10</posY>
			<width>250</width>
            <textcolor>#amped.textdim.color</textcolor>
            <label>#WorldWeather.TodayTemperature</label>
            <animation effect="slide" start="-200,0" end="0,0" tween="quadratic" time="200" delay="100">WindowOpen</animation>
            <animation effect="slide" start="0,0" end="-200,0" tween="quadratic" time="200" delay="100">WindowClose</animation>
            <visible>[Plugin.IsEnabled(World Weather Lite)|Plugin.IsEnabled(World Weather)]+!Plugin.IsEnabled(yrWeather)+string.equals(#WorldWeather.Location)+!Window.IsVisible(0)+!Window.IsVisible(34)+!Window.IsVisible(35)+!Window.IsVisible(8888)+!Window.IsVisible(88883)+!Window.IsVisible(88884)+!Window.IsVisible(88885)+!Window.IsVisible(88886)+!Window.IsVisible(88887)+!Window.IsVisible(888811)</visible>
        </control>
        <control>
            <description>Weather image</description>
            <type>image</type>
            <id>0</id>
			<posX>20</posX>
            <posY>10</posY>
			<width>40</width>
            <height>40</height>
			<align>right</align>
            <texture>#WorldWeather.TodayIconImage</texture>
			<keepaspectratio>yes</keepaspectratio>
            <animation effect="slide" start="-200,0" end="0,0" tween="quadratic" time="200" delay="100">WindowOpen</animation>
            <animation effect="slide" start="0,0" end="-200,0" tween="quadratic" time="200" delay="100">WindowClose</animation>
            <visible>[Plugin.IsEnabled(World Weather Lite)|Plugin.IsEnabled(World Weather)]+!Plugin.IsEnabled(yrWeather)+string.equals(#WorldWeather.Location)+!Window.IsVisible(0)+!Window.IsVisible(34)+!Window.IsVisible(35)+!Window.IsVisible(8888)+!Window.IsVisible(88883)+!Window.IsVisible(88884)+!Window.IsVisible(88885)+!Window.IsVisible(88886)+!Window.IsVisible(88887)+!Window.IsVisible(888811)</visible>
        </control>
        <!-- <control Style="Align Right">
            <description>Temperature</description>
            <type>label</type>
            <id>89563</id>
            <posY>60</posY>
            <textcolor>#amped.textdim.color</textcolor>
            <label>#WorldWeather.TodayTemperature</label>
            <animation effect="slide" start="900,0" end="0,0" tween="quadratic" time="300" delay="0">WindowOpen</animation>
            <animation effect="slide" start="0,0" end="900,0" tween="quadratic" time="300" delay="0">WindowClose</animation>
            <visible>Plugin.IsEnabled(World Weather)+!Plugin.IsEnabled(yrWeather)+string.equals(#WorldWeather.Location)+!Window.IsVisible(0)+!Window.IsVisible(34)+!Window.IsVisible(35)+!Window.IsVisible(8888)+!Window.IsVisible(88883)+!Window.IsVisible(88884)+!Window.IsVisible(88885)+!Window.IsVisible(88886)+!Window.IsVisible(88887)+!Window.IsVisible(888811)</visible>
        </control>
        <control Style="Watched">
            <description>Weather image</description>
            <type>image</type>
            <id>89561</id>
            <posY>32</posY>
            <height>35</height>
			<align>right</align>
            <texture>#WorldWeather.TodayIconImage</texture>
			<keepaspectratio>yes</keepaspectratio>
            <animation effect="slide" start="900,0" end="0,0" tween="quadratic" time="300" delay="0">WindowOpen</animation>
            <animation effect="slide" start="0,0" end="900,0" tween="quadratic" time="300" delay="0">WindowClose</animation>
            <visible>Plugin.IsEnabled(World Weather)+!Plugin.IsEnabled(yrWeather)+string.equals(#WorldWeather.Location)+!Window.IsVisible(0)+!Window.IsVisible(34)+!Window.IsVisible(35)+!Window.IsVisible(8888)+!Window.IsVisible(88883)+!Window.IsVisible(88884)+!Window.IsVisible(88885)+!Window.IsVisible(88886)+!Window.IsVisible(88887)+!Window.IsVisible(888811)</visible>
        </control> -->

        <!-- Yr.no Weather -->
        <control>
            <description>Temperature</description>
            <type>label</type>
            <id>0</id>
			<posX>70</posX>
            <posY>10</posY>
            <textcolor>#amped.textdim.color</textcolor>
            <label>#yrWeather.selectedLocation.temperature</label>
            <animation effect="slide" start="-200,0" end="0,0" tween="quadratic" time="200" delay="100">WindowOpen</animation>
            <animation effect="slide" start="0,0" end="-200,0" tween="quadratic" time="200" delay="100">WindowClose</animation>
            <visible>Plugin.IsEnabled(yrWeather)+string.equals(#yrWeather.selectedLocation.location)+!Window.IsVisible(0)+!Window.IsVisible(34)+!Window.IsVisible(35)+!Window.IsVisible(8888)+!Window.IsVisible(88883)+!Window.IsVisible(88884)+!Window.IsVisible(88885)+!Window.IsVisible(88886)+!Window.IsVisible(88887)+!Window.IsVisible(888811)</visible>
        </control>
        <control>
            <description>Weather image</description>
            <type>image</type>
            <id>0</id>
			<posX>20</posX>
            <posY>10</posY>
			<width>40</width>
            <height>40</height>
			<align>right</align>
            <texture>#yrWeather.selectedLocation.weatherIcon</texture>
			<keepaspectratio>yes</keepaspectratio>
            <animation effect="slide" start="-200,0" end="0,0" tween="quadratic" time="200" delay="100">WindowOpen</animation>
            <animation effect="slide" start="0,0" end="-200,0" tween="quadratic" time="200" delay="100">WindowClose</animation>
            <visible>Plugin.IsEnabled(yrWeather)+string.equals(#yrWeather.selectedLocation.location)+!Window.IsVisible(0)+!Window.IsVisible(34)+!Window.IsVisible(35)+!Window.IsVisible(8888)+!Window.IsVisible(88883)+!Window.IsVisible(88884)+!Window.IsVisible(88885)+!Window.IsVisible(88886)+!Window.IsVisible(88887)+!Window.IsVisible(888811)</visible>
        </control>
        <!-- <control Style="Watched">
            <description>Temperature</description>
            <type>label</type>
            <id>89563</id>
            <posY>75</posY>
			<width>60</width>
			<align>left</align>
            <textcolor>#amped.textdim.color</textcolor>
            <label>#yrWeather.selectedLocation.temperature</label>
            <animation effect="slide" start="900,0" end="0,0" tween="quadratic" time="300" delay="0">WindowOpen</animation>
            <animation effect="slide" start="0,0" end="900,0" tween="quadratic" time="300" delay="0">WindowClose</animation>
            <visible>Plugin.IsEnabled(yrWeather)+string.equals(#yrWeather.selectedLocation.location)+!Window.IsVisible(0)+!Window.IsVisible(34)+!Window.IsVisible(35)+!Window.IsVisible(8888)+!Window.IsVisible(88883)+!Window.IsVisible(88884)+!Window.IsVisible(88885)+!Window.IsVisible(88886)+!Window.IsVisible(88887)+!Window.IsVisible(888811)+!Window.IsVisible(600)</visible>
        </control>
        <control Style="Align Right">
            <description>Weather image</description>
            <type>image</type>
            <id>89561</id>
            <posY>75</posY>
			<width>45</width>
            <height>45</height>
            <texture>#yrWeather.selectedLocation.weatherIcon</texture>
			<keepaspectratio>yes</keepaspectratio>
            <animation effect="slide" start="900,0" end="-30,0" tween="quadratic" time="300" delay="0">WindowOpen</animation>
            <animation effect="slide" start="-30,0" end="900,0" tween="quadratic" time="300" delay="0">WindowClose</animation>
            <visible>Plugin.IsEnabled(yrWeather)+string.equals(#yrWeather.selectedLocation.location)+!Window.IsVisible(0)+!Window.IsVisible(34)+!Window.IsVisible(35)+!Window.IsVisible(8888)+!Window.IsVisible(88883)+!Window.IsVisible(88884)+!Window.IsVisible(88885)+!Window.IsVisible(88886)+!Window.IsVisible(88887)+!Window.IsVisible(888811)+!Window.IsVisible(600)</visible>
        </control> -->
    </controls>
</window>