<?xml version="1.0" encoding="UTF-8"?>
<!-- Milionář updates (docs/plan/skin-milionar/250-update.md). The settings menu (1108) asks the addon to check
     (action=skin_update) and the addon opens this window and fills it through Window(Home).Property(milionar.update.*)
     (wcs/skin/update.py): a headline (a spinner before it while the addon works), the installed and the new version, a
     text (what is new, or what happens next) and up to two buttons. The main button tells the addon to go on (the addon
     focuses it when it offers one); the other closes. -->
<window type="dialog" id="1124">
	<defaultcontrol always="true">9000</defaultcontrol>
	<include>Animation_DialogPopupOpenClose</include>
	<controls>
		<control type="group">
			<centerleft>50%</centerleft>
			<width>1100</width>
			<centertop>50%</centertop>
			<height>560</height>
			<include content="DialogBackgroundCommons">
				<param name="width" value="1100" />
				<param name="height" value="560" />
				<param name="darken_bg" value="true" />
				<param name="header_label" value="$LOCALIZE[31970]" />
				<param name="header_id" value="" />
			</include>
			<!-- the addon's mark -->
			<control type="image">
				<left>80</left>
				<top>140</top>
				<width>140</width>
				<height>140</height>
				<aspectratio>keep</aspectratio>
				<texture colordiffuse="milionar_logo_tint">special://home/addons/plugin.video.milionar/resources/media/brand/milionar-mark.png</texture>
			</control>
			<control type="group">
				<left>300</left>
				<top>100</top>
				<width>760</width>
				<!-- the headline, after a spinner while the addon works -->
				<control type="grouplist">
					<width>760</width>
					<height>60</height>
					<orientation>horizontal</orientation>
					<itemgap>16</itemgap>
					<control type="group">
						<width>44</width>
						<height>60</height>
						<visible>String.IsEqual(Window(Home).Property(milionar.update.busy),true)</visible>
						<include content="MilionarSpinner">
							<param name="size" value="44"/>
							<param name="inner" value="30"/>
						</include>
					</control>
					<control type="label">
						<width min="1" max="760">auto</width>
						<height>60</height>
						<font>font32_title</font>
						<aligny>center</aligny>
						<label>$INFO[Window(Home).Property(milionar.update.headline)]</label>
					</control>
				</control>
				<!-- installed -> new -->
				<control type="group">
					<top>72</top>
					<visible>!String.IsEmpty(Window(Home).Property(milionar.update.installed))</visible>
					<control type="label">
						<width>240</width>
						<height>30</height>
						<font>font12</font>
						<textcolor>grey</textcolor>
						<label>$LOCALIZE[31977]</label>
					</control>
					<control type="label">
						<top>30</top>
						<width>240</width>
						<height>56</height>
						<font>font37</font>
						<aligny>center</aligny>
						<label>$INFO[Window(Home).Property(milionar.update.installed)]</label>
					</control>
					<control type="group">
						<visible>!String.IsEmpty(Window(Home).Property(milionar.update.available))</visible>
						<control type="image">
							<left>200</left>
							<top>42</top>
							<width>32</width>
							<height>32</height>
							<aspectratio>keep</aspectratio>
							<texture colordiffuse="grey">overlays/arrowright.png</texture>
						</control>
						<control type="label">
							<left>270</left>
							<width>240</width>
							<height>30</height>
							<font>font12</font>
							<textcolor>grey</textcolor>
							<label>$LOCALIZE[31978]</label>
						</control>
						<control type="label">
							<left>270</left>
							<top>30</top>
							<width>240</width>
							<height>56</height>
							<font>font37</font>
							<aligny>center</aligny>
							<textcolor>button_focus</textcolor>
							<label>$INFO[Window(Home).Property(milionar.update.available)]</label>
						</control>
					</control>
				</control>
				<control type="textbox">
					<top>190</top>
					<width>760</width>
					<height>140</height>
					<font>font12</font>
					<label>$INFO[Window(Home).Property(milionar.update.text)]</label>
					<autoscroll time="3000" delay="5000" repeat="6000">true</autoscroll>
				</control>
			</control>
			<!-- the buttons, as in Estuary's own dialogs: the main one only when the addon offers one -->
			<control type="grouplist" id="9000">
				<orientation>horizontal</orientation>
				<left>0</left>
				<top>440</top>
				<width>1100</width>
				<height>100</height>
				<align>center</align>
				<itemgap>0</itemgap>
				<control type="button" id="11">
					<width>320</width>
					<height>100</height>
					<font>font25_title</font>
					<textoffsetx>20</textoffsetx>
					<align>center</align>
					<label>$INFO[Window(Home).Property(milionar.update.primary)]</label>
					<texturefocus border="40" colordiffuse="button_focus">buttons/dialogbutton-fo.png</texturefocus>
					<texturenofocus border="40">buttons/dialogbutton-nofo.png</texturenofocus>
					<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_update&amp;do=primary))</onclick>
					<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_update&amp;do=primary)</onclick>
					<visible>!String.IsEmpty(Window(Home).Property(milionar.update.primary))</visible>
				</control>
				<control type="button" id="12">
					<width>320</width>
					<height>100</height>
					<font>font25_title</font>
					<textoffsetx>20</textoffsetx>
					<align>center</align>
					<label>$INFO[Window(Home).Property(milionar.update.secondary)]</label>
					<texturefocus border="40" colordiffuse="button_focus">buttons/dialogbutton-fo.png</texturefocus>
					<texturenofocus border="40">buttons/dialogbutton-nofo.png</texturenofocus>
					<onclick>Dialog.Close(1124)</onclick>
				</control>
			</control>
		</control>
	</controls>
</window>
