<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">200</defaultcontrol>
	<zorder>0</zorder>
	<include>dialogeffect</include>
	<controls>
		<control type="image">
			<description>Background fade</description>
			<width>100%</width>
			<height>100%</height>
			<texture>emby-bg-fade.png</texture>
		</control>
		
		<control type="group">
			<width>600</width>
			<left>35%</left>
			<top>20%</top>
			<control type="image">
				<description>Background box</description>
				<texture colordiffuse="ff111111">white.png</texture>
				<width>600</width>
				<height>525</height>
			</control>

			<control type="group" id="202">
				<top>530</top>
				<visible>False</visible>
				<control type="image">
					<description>Error box</description>
					<texture colordiffuse="ff222222">white.png</texture>
					<width>100%</width>
					<height>50</height>
				</control>

				<control type="label" id="203">
					<description>Error message</description>
					<textcolor>white</textcolor>
					<font>font10</font>
					<aligny>center</aligny>
					<align>center</align>
					<height>50</height>
				</control>
			</control>
			
			<control type="image">
				<description>Emby logo</description>
				<texture>logo-white.png</texture>
				<aspectratio>keep</aspectratio>
				<width>120</width>
				<height>49</height>
				<top>30</top>
				<left>25</left>
			</control>
			
			<control type="group">
				<width>500</width>
				<left>50</left>
				<control type="label">
					<description>Connect to server</description>
					<label>$ADDON[plugin.video.emby 30614]</label>
					<textcolor>white</textcolor>
					<font>font12</font>
					<aligny>top</aligny>
					<align>center</align>
					<width>100%</width>
					<top>100</top>
				</control>
				
				<control type="group">
					<top>150</top>
					<control type="label">
						<description>Host</description>
						<label>$ADDON[plugin.video.emby 30615]</label>
						<textcolor>ffa6a6a6</textcolor>
						<font>font10</font>
						<aligny>top</aligny>
					</control>

					<control type="image">
						<description>separator</description>
						<width>102%</width>
						<height>0.5</height>
						<top>66</top>
						<left>-10</left>
						<texture colordiffuse="ff525252" border="90,3,90,3">emby-separator.png</texture>
					</control>

					<control type="label">
						<description>Host example</description>
						<label>192.168.1.100 or https://myserver.com</label>
						<textcolor>ff464646</textcolor>
						<font>font10</font>
						<aligny>top</aligny>
						<top>70</top>
					</control>
				</control>
				
				<control type="group">
					<description>Port</description>
					<top>275</top>
					<control type="label">
						<description>Port label</description>
						<label>$ADDON[plugin.video.emby 30030]</label>
						<textcolor>ffa6a6a6</textcolor>
						<font>font10</font>
						<aligny>top</aligny>
					</control>

					<control type="image">
						<description>separator</description>
						<width>102%</width>
						<height>0.5</height>
						<top>66</top>
						<left>-10</left>
						<texture colordiffuse="ff525252" border="90,3,90,3">emby-separator.png</texture>
					</control>
				</control>

				<control type="group">
					<description>Buttons</description>
					<top>380</top>
					<control type="button" id="200">
						<description>Connect</description>
						<texturenofocus border="5" colordiffuse="ff0b8628">box.png</texturenofocus>
						<texturefocus border="5" colordiffuse="ff13a134">box.png</texturefocus>
						<label>[UPPERCASE][B]$ADDON[plugin.video.emby 30616][/B][/UPPERCASE]</label>
						<font>font10</font>
						<textcolor>ffa6a6a6</textcolor>
						<focusedcolor>white</focusedcolor>
						<align>center</align>
						<width>100%</width>
						<height>50</height>
						<ondown>201</ondown>
					</control>
					
					<control type="button" id="201">
						<description>Cancel</description>
						<texturenofocus border="5" colordiffuse="ff464646">box.png</texturenofocus>
						<texturefocus border="5" colordiffuse="ff525252">box.png</texturefocus>
						<label>[UPPERCASE][B]$ADDON[plugin.video.emby 30606][/B][/UPPERCASE]</label>
						<font>font10</font>
						<textcolor>ffa6a6a6</textcolor>
						<focusedcolor>white</focusedcolor>
						<align>center</align>
						<width>100%</width>
						<height>50</height>
						<top>55</top>
						<onup>200</onup>
					</control>
				</control>
			</control>
		</control>
	</controls>
</window>