<?xml version="1.0" encoding="UTF-8"?>
<window id="1110" type="dialog">
	<defaultcontrol always="true">100</defaultcontrol>
	<onunload condition="String.IsEmpty(Window(home).Property(DoNotKillProperties))">ClearProperty(PositionCount,home)</onunload>
	<onunload condition="String.IsEmpty(Window(home).Property(DoNotKillProperties))">ClearProperty(SelectorContent,home)</onunload>
	<onload>ClearProperty(DoNotKillProperties,home)</onload>
	<onload>ClearProperty(ShowBusy,home)</onload>
	<include>PropertyIncludes</include>
	<controls>
		<!-- background -->
		<include content="DiffuseMask">
			<param name="color">background_diffuse</param>
		</include>
		<!-- dialog -->
		<control type="group">
			<include>FullscreenDimensions</include>
			<control type="grouplist">
				<visible>!Window.IsVisible(1111)</visible>
				<include>Dialog_PopupOpenClose</include>
				<include>Visible_PopupOpenClose</include>
				<centerleft>50%</centerleft>
				<centertop>50%</centertop>
				<width>900</width>
				<height max="940">auto</height>
				<orientation>vertical</orientation>
				<itemgap>20</itemgap>
				<align>center</align>
				<!-- headline -->
				<control type="group">
					<height>50</height>
					<control type="label">
						<width>100%</width>
						<height>48</height>
						<font>Reg24</font>
						<aligny>center</aligny>
						<textoffsetx>5</textoffsetx>
						<textcolor>text_headline</textcolor>
						<label>$VAR[PositionselectorHeadline] - $LOCALIZE[31083]</label>
					</control>
					<include>GreenBar</include>
				</control>
				<!-- list -->
				<control type="group">
					<height>770</height>
					<control type="image">
						<height>770</height>
						<texture colordiffuse="panel_background">common/white.jpg</texture>
						<aspectratio>stretch</aspectratio>
					</control>
					<control type="list" id="211">
						<centerleft>50%</centerleft>
						<top>10</top>
						<height>750</height>
						<onup>noop</onup>
						<onleft>101</onleft>
						<onright>101</onright>
						<ondown>101</ondown>
						<pagecontrol>60</pagecontrol>
						<scrolltime>200</scrolltime>
						<itemlayout height="75" width="900">
							<control type="label">
								<right>220</right>
								<left>25</left>
								<height>75</height>
								<aligny>center</aligny>
								<font>Reg24</font>
								<label>$INFO[ListItem.Property(pos),,    ][COLOR disabled]$INFO[ListItem.Label][/COLOR]</label>
								<scroll>false</scroll>
								<textcolor>panel_textcolor</textcolor>
								<visible>String.IsEmpty(ListItem.Property(item))</visible>
							</control>
							<control type="label">
								<right>220</right>
								<left>25</left>
								<height>75</height>
								<aligny>center</aligny>
								<font>Reg24</font>
								<label>$INFO[ListItem.Property(pos),,    ][COLOR panel_textcolor2]$INFO[ListItem.Label][/COLOR]</label>
								<scroll>false</scroll>
								<textcolor>panel_textcolor</textcolor>
								<visible>!String.IsEmpty(ListItem.Property(item))</visible>
							</control>
						</itemlayout>
						<focusedlayout height="75" width="900">
							<control type="group">
								<visible>ControlGroup(100).HasFocus</visible>
								<control type="image">
									<width>100%</width>
									<height>75</height>
									<texture colordiffuse="panel_focus">common/white.jpg</texture>
								</control>
								<control type="label">
									<right>220</right>
									<left>25</left>
									<height>75</height>
									<aligny>center</aligny>
									<font>Reg24</font>
									<label>$INFO[ListItem.Property(pos),,    ]$INFO[ListItem.Label]</label>
									<scroll>true</scroll>
									<textcolor>panel_textcolor</textcolor>
								</control>
							</control>
							<control type="group">
								<visible>!ControlGroup(100).HasFocus</visible>
								<control type="label">
									<right>220</right>
									<left>25</left>
									<height>75</height>
									<aligny>center</aligny>
									<font>Reg24</font>
									<label>$INFO[ListItem.Property(pos),,    ][COLOR disabled]$INFO[ListItem.Label][/COLOR]</label>
									<scroll>false</scroll>
									<textcolor>panel_textcolor</textcolor>
									<visible>String.IsEmpty(ListItem.Property(item))</visible>
								</control>
								<control type="label">
									<right>220</right>
									<left>25</left>
									<height>75</height>
									<aligny>center</aligny>
									<font>Reg24</font>
									<label>$INFO[ListItem.Property(pos),,    ][COLOR panel_textcolor2]$INFO[ListItem.Label][/COLOR]</label>
									<scroll>false</scroll>
									<textcolor>panel_textcolor</textcolor>
									<visible>!String.IsEmpty(ListItem.Property(item))</visible>
								</control>
							</control>
						</focusedlayout>
						<include condition="String.IsEqual(Window(home).Property(SelectorContent),HomeWidgets)" content="PositionSelectorItems">
							<param name="type" value="home"/>
						</include>
						<include condition="String.IsEqual(Window(home).Property(SelectorContent),MovieHubWidgets)" content="PositionSelectorItems">
							<param name="type" value="moviehub"/>
						</include>
						<include condition="String.IsEqual(Window(home).Property(SelectorContent),TVShowHubWidgets)" content="PositionSelectorItems">
							<param name="type" value="tvshowhub"/>
						</include>
						<include condition="String.IsEqual(Window(home).Property(SelectorContent),MusicHubWidgets)" content="PositionSelectorItems">
							<param name="type" value="musichub"/>
						</include>
						<include condition="String.IsEqual(Window(home).Property(SelectorContent),TagMovieHubWidgets)" content="PositionSelectorItems">
							<param name="type" value="tagmoviehub"/>
						</include>
						<include condition="String.IsEqual(Window(home).Property(SelectorContent),TagTVShowHubWidgets)" content="PositionSelectorItems">
							<param name="type" value="tagtvshowhub"/>
						</include>
						<include condition="String.IsEqual(Window(home).Property(SelectorContent),TagMixedHubWidgets)" content="PositionSelectorItems">
							<param name="type" value="tagmixedhub"/>
						</include>
						<include condition="String.IsEqual(Window(home).Property(SelectorContent),EmbyConMovieHubWidgets)" content="PositionSelectorItems">
							<param name="type" value="embyconmoviehub"/>
						</include>
						<include condition="String.IsEqual(Window(home).Property(SelectorContent),EmbyConTVShowHubWidgets)" content="PositionSelectorItems">
							<param name="type" value="embycontvshowhub"/>
						</include>
						<include condition="String.IsEqual(Window(home).Property(SelectorContent),EmbyConMusicHubWidgets)" content="PositionSelectorItems">
							<param name="type" value="embyconmusichub"/>
						</include>
						<include condition="String.IsEqual(Window(home).Property(SelectorContent),CustomHubWidgets)" content="PositionSelectorItems">
							<param name="type" value="customhub"/>
						</include>
					</control>
					<control type="scrollbar" id="60">
						<right>0</right>
						<top>0</top>
						<bottom>0</bottom>
						<width>4</width>
						<orientation>vertical</orientation>
						<showonepage>false</showonepage>
						<texturesliderbackground colordiffuse="00ffffff">common/white.jpg</texturesliderbackground>
						<texturesliderbar colordiffuse="scrollbar_slider">common/white.jpg</texturesliderbar>
					</control>
					<control type="grouplist" id="100">
						<visible allowhiddenfocus="true">ControlGroup(100).HasFocus</visible>
						<animation effect="slide" end="0,75" time="0" reversible="false" condition="Container(211).Position(1)">Conditional</animation>
						<animation effect="slide" end="0,150" time="0" reversible="false" condition="Container(211).Position(2)">Conditional</animation>
						<animation effect="slide" end="0,225" time="0" reversible="false" condition="Container(211).Position(3)">Conditional</animation>
						<animation effect="slide" end="0,300" time="0" reversible="false" condition="Container(211).Position(4)">Conditional</animation>
						<animation effect="slide" end="0,375" time="0" reversible="false" condition="Container(211).Position(5)">Conditional</animation>
						<animation effect="slide" end="0,450" time="0" reversible="false" condition="Container(211).Position(6)">Conditional</animation>
						<animation effect="slide" end="0,525" time="0" reversible="false" condition="Container(211).Position(7)">Conditional</animation>
						<animation effect="slide" end="0,600" time="0" reversible="false" condition="Container(211).Position(8)">Conditional</animation>
						<animation effect="slide" end="0,675" time="0" reversible="false" condition="Container(211).Position(9)">Conditional</animation>
						<top>10</top>
						<right>10</right>
						<width>400</width>
						<height>75</height>
						<align>right</align>
						<onleft>200</onleft>
						<onright>200</onright>
						<orientation>horizontal</orientation>
						<!-- Move up -->
						<control type="button" id="101">
							<height>75</height>
							<width>50</width>
							<font>Material26</font>
							<textcolor>white</textcolor>
							<focusedcolor>$VAR[AccentColor]</focusedcolor>
							<selectedcolor>white</selectedcolor>
							<label>&#xf05d;</label>
							<include>NoTextures</include>
							<textoffsetx>0</textoffsetx>
							<onup condition="!String.IsEmpty(Container(211).ListItemNoWrap(-1).Label) + !System.HasAlarm(move)">Control.Move(211,-1)</onup>
							<ondown condition="!String.IsEmpty(Container(211).ListItemNoWrap(1).Label) + !System.HasAlarm(move)">Control.Move(211,1)</ondown>
							<ondown condition="String.IsEmpty(Container(211).ListItemNoWrap(1).Label) + !System.HasAlarm(move)">200</ondown>
							<include content="PositionSelectorMoveFunc">
								<param name="direction" value="-1"/>
							</include>
							<visible>!String.IsEmpty(Container(211).ListItemNoWrap(-1).Label)</visible>
						</control>
						<!-- Move down -->
						<control type="button" id="102">
							<height>75</height>
							<width>50</width>
							<font>Material26</font>
							<textcolor>white</textcolor>
							<focusedcolor>$VAR[AccentColor]</focusedcolor>
							<selectedcolor>white</selectedcolor>
							<label>&#xf045;</label>
							<include>NoTextures</include>
							<textoffsetx>0</textoffsetx>
							<onup condition="!String.IsEmpty(Container(211).ListItemNoWrap(-1).Label) + !System.HasAlarm(move)">Control.Move(211,-1)</onup>
							<ondown condition="!String.IsEmpty(Container(211).ListItemNoWrap(1).Label) + !System.HasAlarm(move)">Control.Move(211,1)</ondown>
							<ondown condition="String.IsEmpty(Container(211).ListItemNoWrap(1).Label) + !System.HasAlarm(move)">200</ondown>
							<include content="PositionSelectorMoveFunc">
								<param name="direction" value="1"/>
							</include>
							<visible>!String.IsEmpty(Container(211).ListItemNoWrap(1).Label)</visible>
						</control>
						<!-- Add -->
						<control type="button" id="103">
							<height>75</height>
							<width>50</width>
							<font>Material26</font>
							<textcolor>white</textcolor>
							<focusedcolor>$VAR[AccentColor]</focusedcolor>
							<selectedcolor>white</selectedcolor>
							<label>&#xf415;</label>
							<include>NoTextures</include>
							<textoffsetx>0</textoffsetx>
							<onup condition="!String.IsEmpty(Container(211).ListItemNoWrap(-1).Label + !System.HasAlarm(move))">Control.Move(211,-1)</onup>
							<ondown condition="!String.IsEmpty(Container(211).ListItemNoWrap(1).Label) + !System.HasAlarm(move)">Control.Move(211,1)</ondown>
							<ondown condition="String.IsEmpty(Container(211).ListItemNoWrap(1).Label) + !System.HasAlarm(move)">200</ondown>
							<onclick>SetProperty(widget_position,$INFO[Container(211).ListItem.Property(pos)],home)</onclick>
							<onclick>ActivateWindow(1111)</onclick>
							<visible>String.IsEmpty(Container(211).ListItem.Property(item))</visible>
						</control>
						<!-- Change -->
						<control type="button" id="104">
							<height>75</height>
							<width>50</width>
							<font>Material26</font>
							<textcolor>white</textcolor>
							<focusedcolor>$VAR[AccentColor]</focusedcolor>
							<selectedcolor>white</selectedcolor>
							<label>&#xf90b;</label>
							<include>NoTextures</include>
							<textoffsetx>0</textoffsetx>
							<onup condition="!String.IsEmpty(Container(211).ListItemNoWrap(-1).Label + !System.HasAlarm(move))">Control.Move(211,-1)</onup>
							<ondown condition="!String.IsEmpty(Container(211).ListItemNoWrap(1).Label) + !System.HasAlarm(move)">Control.Move(211,1)</ondown>
							<ondown condition="String.IsEmpty(Container(211).ListItemNoWrap(1).Label) + !System.HasAlarm(move)">200</ondown>
							<onclick>SetProperty(widget_position,$INFO[Container(211).ListItem.Property(pos)],home)</onclick>
							<onclick>ActivateWindow(1111)</onclick>
							<visible>!String.IsEmpty(Container(211).ListItem.Property(item))</visible>
						</control>
						<!-- Delete -->
						<control type="button" id="108">
							<height>75</height>
							<width>50</width>
							<font>Material26</font>
							<textcolor>white</textcolor>
							<focusedcolor>$VAR[AccentColor]</focusedcolor>
							<selectedcolor>white</selectedcolor>
							<label>&#xf9e6;</label>
							<include>NoTextures</include>
							<textoffsetx>0</textoffsetx>
							<onup condition="!String.IsEmpty(Container(211).ListItemNoWrap(-1).Label + !System.HasAlarm(move))">Control.Move(211,-1)</onup>
							<ondown condition="!String.IsEmpty(Container(211).ListItemNoWrap(1).Label) + !System.HasAlarm(move)">Control.Move(211,1)</ondown>
							<ondown condition="String.IsEmpty(Container(211).ListItemNoWrap(1).Label) + !System.HasAlarm(move)">200</ondown>
							<onclick>Skin.Reset($VAR[PositionselectorGroup]_widget_pos_$INFO[Container(211).ListItem.Property(pos)])</onclick>
							<onclick>Skin.Reset($VAR[PositionselectorGroup]_widget_pos_$INFO[Container(211).ListItem.Property(pos)].label)</onclick>
							<visible>!String.IsEmpty(Container(211).ListItem.Property(item))</visible>
						</control>
					</control>
				</control>
				<!-- Button -->
				<control type="grouplist" id="200">
					<height>50</height>
					<width>100%</width>
					<orientation>horizontal</orientation>
					<itemgap>5</itemgap>
					<align>center</align>
					<onright>102</onright>
					<onleft>101</onleft>
					<control type="button" id="201">
						<include>DarkGreyButton</include>
						<label>$LOCALIZE[15067]</label>
						<onclick>close</onclick>
						<onup>SetFocus(100)</onup>
					</control>
					<control type="button" id="202">
						<include>DarkGreyButton</include>
						<label>$LOCALIZE[31248]</label>
						<onclick>SetProperty(DoNotKillProperties,1,home)</onclick>
						<onclick>close</onclick>
						<onclick condition="String.IsEqual(Window(home).Property(SelectorContent),HomeWidgets)">SetProperty(HomeWidgetReset,1,home)</onclick>
						<onclick condition="String.IsEqual(Window(home).Property(SelectorContent),MovieHubWidgets)">SetProperty(MovieHubWidgetReset,1,home)</onclick>
						<onclick condition="String.IsEqual(Window(home).Property(SelectorContent),TVShowHubWidgets)">SetProperty(TVShowHubWidgetReset,1,home)</onclick>
						<onclick condition="String.IsEqual(Window(home).Property(SelectorContent),MusicHubWidgets)">SetProperty(MusicHubWidgetReset,1,home)</onclick>
						<onclick condition="String.IsEqual(Window(home).Property(SelectorContent),TagMovieHubWidgets)">SetProperty(TagMovieHubWidgetsReset,1,home)</onclick>
						<onclick condition="String.IsEqual(Window(home).Property(SelectorContent),TagTVShowHubWidgets)">SetProperty(TagTVShowHubWidgetsReset,1,home)</onclick>
						<onclick condition="String.IsEqual(Window(home).Property(SelectorContent),TagMixedHubWidgets)">SetProperty(TagMixedHubWidgetsReset,1,home)</onclick>
						<onclick condition="String.IsEqual(Window(home).Property(SelectorContent),EmbyConMovieHubWidgets)">SetProperty(EmbyConMovieHubWidgetsReset,1,home)</onclick>
						<onclick condition="String.IsEqual(Window(home).Property(SelectorContent),EmbyConTVShowHubWidgets)">SetProperty(EmbyConTVShowHubWidgetsReset,1,home)</onclick>
						<onclick condition="String.IsEqual(Window(home).Property(SelectorContent),EmbyConMusicHubWidgets)">SetProperty(EmbyConMusicHubWidgetsReset,1,home)</onclick>
						<onclick condition="String.IsEqual(Window(home).Property(SelectorContent),CustomHubWidgets)">SetProperty(CustomHubWidgetsReset,1,home)</onclick>
						<onclick>ActivateWindow(1112)</onclick>
						<onclick>AlarmClock(restorewidgets,ActivateWindow(1110),00:01,silent)</onclick>
						<onup>SetFocus(100)</onup>
					</control>
				</control>
			</control>
		</control>
	</controls>
</window>