<?xml version="1.0" encoding="utf-8"?>
<window type="dialog" id="1118">
    <defaultcontrol always="true">9011</defaultcontrol>
    <onunload>ClearProperty(viewtypeselect,home)</onunload>
    <onload condition="String.IsEmpty(Window(home).Property(viewtypeselect))">Dialog.Close(1118)</onload>
    <coordinates>
        <left>0</left>
        <top>0</top>
        <system>1</system>
    </coordinates>
    <controls>
        <include content="SideBladeCloseIcon">
            <param name="CloseIconDialogClose" value="Dialog.Close(1118)" />
            <param name="CloseIconDialogClose2" value="noop" />
            <param name="ClearMediaMenu" value="ClearProperty(MediaMenu,Home)" />
            <param name="CloseIconSetFocus" value="SetFocus(50)" />
            <param name="CloseIconVisibility" value="system.getbool(input.enablemouse) + Window.IsActive(1118)" />
        </include>
        <control type="group">
            <left>15</left>
            <animation effect="slide" start="-440,0" end="0,0" time="400" tween="quadratic" easing="out">WindowOpen</animation>
            <animation effect="slide" start="0,0" end="-440,0" time="160" tween="quadratic" easing="out">WindowClose</animation>
            <visible>!Window.IsActive(1129)</visible>
            <control type="label">
                <top>10</top>
                <width>400</width>
                <height>52</height>
                <textoffsetx>15</textoffsetx>
                <font>font13_title</font>
                <label>31127</label>
                <textcolor>LabelTextColor</textcolor>
            </control>
            <control type="list" id="9011">
                <!-- viewtype selection-->
                <top>62</top>
                <width>400</width>
                <height>840</height>
                <visible>!String.IsEmpty(Window(home).Property(viewtypeselect))</visible>
                <orientation>vertical</orientation>
                <onright>Dialog.Close(1118)</onright>
                <onright>ClearProperty(MediaMenu,Home)</onright>
                <onright condition="!Window.IsActive(settings)">Control.SetFocus(50)</onright>
                <onright condition="Window.IsActive(settings)">Control.SetFocus(9000)</onright>
                <onup condition="Control.IsVisible(9012)">9012</onup>
                <onup condition="!Control.IsVisible(9012)">9011</onup>
                <ondown condition="Control.IsVisible(9012)">9012</ondown>
                <ondown condition="!Control.IsVisible(9012)">9011</ondown>
                <itemlayout width="400" height="60">
                    <control type="label">
                        <textoffsetx>15</textoffsetx>
                        <width>400</width>
                        <height>60</height>
                        <label>$INFO[ListItem.Label]</label>
                    </control>
                </itemlayout>
                <focusedlayout width="400" height="60">
                    <control type="image">
                        <width>400</width>
                        <height>60</height>
                        <texture border="5">listselect_fo.png</texture>
                        <colordiffuse>FocusColor</colordiffuse>
                        <visible>Control.HasFocus(9011)</visible>
                        <include>VisibleFadeEffect</include>
                    </control>
                    <control type="label">
                        <textoffsetx>15</textoffsetx>
                        <width>400</width>
                        <height>60</height>
                        <label>$INFO[ListItem.Label]</label>
                    </control>
                </focusedlayout>
                <content>
                    <item>
                        <description>List</description>
                        <label>535</label>
                        <onclick>Container.SetViewMode(50)</onclick>
                        <visible>!Window.IsActive(tvguide) + !Window.IsActive(settings)</visible>
                    </item>
                    <item>
                        <description>List</description>
                        <label>535</label>
                        <onclick condition="Skin.HasSetting(Enable.SettingsPanelView)">Skin.ToggleSetting(Enable.SettingsPanelView)</onclick>
                        <visible>Window.IsActive(settings)</visible>
                    </item>
                    <item>
                        <description>Thumbnail</description>
                        <label>21371</label>
                        <onclick>Container.SetViewMode(52)</onclick>
                        <visible>!Skin.HasSetting(Disable.ThumbnailView) + ![Window.IsActive(tvguide) | Window.IsActive(tvtimers) | Window.IsActive(tvsearch) | Window.IsActive(tvrecordings) | Window.IsActive(tvchannels) | Window.IsActive(eventlog) | Window.IsActive(settings)]</visible>
                    </item>
                    <item>
                        <description>Thumbnail</description>
                        <label>21371</label>
                        <onclick condition="!Skin.HasSetting(Enable.SettingsPanelView)">Skin.ToggleSetting(Enable.SettingsPanelView)</onclick>
                        <visible>Window.IsActive(settings)</visible>
                    </item>
                    <item>
                        <description>Wall</description>
                        <label>31086</label>
                        <onclick>Container.SetViewMode(500)</onclick>
                        <visible>Container.Content(favourites) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(episodes) | Container.Content(seasons) | Container.Content(sets) | Container.Content(musicvideos) | Container.Content(videos) | [Container.Content(artists) + !Window.IsActive(videos)] | [Container.Content(albums) + !Window.IsActive(videos)] | [Container.Content(files) + Container(500).HasFiles]</visible>
                        <visible>!Skin.HasSetting(Disable.IconView) + !String.Contains(Container.FolderPath,plugin://plugin.library.node.editor/)</visible>
                    </item>
                    <item>
                        <description>Wall</description>
                        <label>31086</label>
                        <onclick>Container.SetViewMode(510)</onclick>
                        <visible>Container.Content(images)</visible>
                        <visible>!Skin.HasSetting(Disable.IconView)</visible>
                    </item>
                    <item>
                        <description>Wall</description>
                        <label>31086</label>
                        <onclick>Container.SetViewMode(520)</onclick>
                        <visible>Container.Content(addons)</visible>
                        <visible>!Skin.HasSetting(Disable.IconView)</visible>
                    </item>
                    <item>
                        <description>InfoWall</description>
                        <label>31021</label>
                        <onclick>Container.SetViewMode(51)</onclick>
                        <visible>Container.Content(favourites) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons) | Container.Content(sets) | [Container.Content(artists) + !Window.IsActive(videos)] | [Container.Content(albums) + !Window.IsActive(videos)]</visible>
                        <visible>!Skin.HasSetting(Disable.InfoWallView)</visible>
                    </item>
                    <item>
                        <description>Shift</description>
                        <label>31079</label>
                        <onclick>Container.SetViewMode(57)</onclick>
                        <visible>Container.Content(favourites) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes) | Container.Content(sets) | Container.Content(musicvideos) | Container.Content(files) | Container.Content(videos) | [Container.Content(addons) + !Window.IsActive(videos)] | [Container.Content(artists) + !Window.IsActive(videos)] | [Container.Content(albums) + !Window.IsActive(videos)]</visible>
                        <visible>!Skin.HasSetting(Disable.ShiftView) + !String.Contains(Container.FolderPath,plugin://plugin.library.node.editor/)</visible>
                    </item>
                    <item>
                        <description>LowList</description>
                        <label>31003</label>
                        <onclick>Container.SetViewMode(501)</onclick>
                        <visible>Container.Content(favourites) | Container.Content(movies) | Container.Content(sets) | Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes) | [[Container.Content(artists) | Container.Content(albums) | Container.Content(songs)] + !Window.IsActive(videos)] | [Container.Content(addons) + !Window.IsActive(videos) + !Window.IsActive(music)]</visible>
                        <visible>!Skin.HasSetting(Disable.LowListView)</visible>
                    </item>
                    <item>
                        <description>LowPanel</description>
                        <label>31245</label>
                        <onclick>Container.SetViewMode(55)</onclick>
                        <visible>Container.Content(favourites) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons) | Container.Content(sets) | Container.Content(artists) | Container.Content(albums)</visible>
                        <visible>!Skin.HasSetting(Disable.LowPanelView)</visible>
                    </item>
                    <item>
                        <description>BigList</description>
                        <label>31052</label>
                        <onclick>Container.SetViewMode(507)</onclick>
                        <visible>Container.Content(favourites) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(episodes) | Container.Content(videos) | [[Container.Content(artists) | Container.Content(albums)] + !Window.IsActive(videos)]</visible>
                        <visible>!Skin.HasSetting(Disable.BigListView)</visible>
                    </item>
                    <item>
                        <description>BigWall</description>
                        <label>31078</label>
                        <onclick>Container.SetViewMode(509)</onclick>
                        <visible>Container.Content(favourites) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(sets) | Container.Content(seasons) | [Container.Content(artists) + !Window.IsActive(videos)] | [Container.Content(albums) + !Window.IsActive(videos)]  | [Container.Content(images) + Container(509).HasFiles]</visible>
                        <visible>!Skin.HasSetting(Disable.WallView)</visible>
                    </item>
                    <item>
                        <description>Panel</description>
                        <label>31059</label>
                        <onclick>Container.SetViewMode(505)</onclick>
                        <visible>Container.Content(favourites) | Container.Content(movies) | Container.Content(tvshows) | Container.Content(episodes) | Container.Content(videos) | [Container.Content(artists) + !Window.IsActive(videos)]</visible>
                        <visible>!Skin.HasSetting(Disable.PanelView)</visible>
                    </item>
                    <item>
                        <description>Fanart</description>
                        <label>20445</label>
                        <onclick>Container.SetViewMode(59)</onclick>
                        <visible>Container.Content(favourites) | Container.Content(movies) | Container.Content(tvshows) | [Container.Content(artists) + !Window.IsActive(videos)]</visible>
                        <visible>!Skin.HasSetting(Disable.FanartView)</visible>
                    </item>
                    <item>
                        <description>Gallery</description>
                        <label>31054</label>
                        <onclick>Container.SetViewMode(504)</onclick>
                        <visible>[Container.Content(favourites) | Container.Content(sets) |Container.Content(movies) | Container.Content(seasons) | Container.Content(tvshows) | [Container.Content(images) + Container(504).HasFiles] | Container.Content(artists)|Container.Content(albums)  ] + !Container.Content(addons)</visible>
                        <visible>!Skin.HasSetting(Disable.GalleryView)</visible>
                    </item>
                    <item>
                        <description>Episode</description>
                        <label>31093</label>
                        <onclick>Container.SetViewMode(502)</onclick>
                        <visible>Container.Content(episodes) | Container.Content(videos)</visible>
                        <visible>!Skin.HasSetting(Disable.EpisodeView)</visible>
                    </item>
                    <item>
                        <description>Song</description>
                        <label>31076</label>
                        <onclick>Container.SetViewMode(508)</onclick>
                        <visible>Container.Content(songs)</visible>
                        <visible>!Skin.HasSetting(Disable.SongView)</visible>
                    </item>
                    <item>
                        <description>Arcade</description>
                        <label>Arcade</label>
                        <onclick>Container.SetViewMode(900)</onclick>
                        <visible>$EXP[GameSupport] | Container.Content(favourites) | Container.Content(Movies) | Container.Content(Seasons) | Container.Content(TVShows)</visible>
                    </item>
                    <item>
                        <description>Keibertz</description>
                        <label>Keibertz+</label>
                        <onclick>Container.SetViewMode(902)</onclick>
                        <visible>$EXP[GameSupport] | Container.Content(favourites) | Container.Content(Movies) | Container.Content(Seasons) | Container.Content(TVShows)</visible>
                    </item>
                    <item>
                        <description>Coverflow</description>
                        <label>Coverflow</label>
                        <onclick>Container.SetViewMode(903)</onclick>
                        <visible>$EXP[GameSupport] | Container.Content(favourites) | Container.Content(Albums) | Container.Content(Movies) | Container.Content(Seasons) | Container.Content(TVShows)</visible>
                    </item>
                    <item>
                        <description>Sauna</description>
                        <label>Sauna</label>
                        <onclick>Container.SetViewMode(909)</onclick>
                        <visible>$EXP[GameSupport]</visible>
                    </item>
                </content>
            </control>
            <control type="button" id="9012">
                <visible>!Skin.HasSetting(KioskMode.Enabled) + !Window.IsVisible(settings)</visible>
                <top>1020</top>
                <width>400</width>
                <align>center</align>
                <textoffsetx>30</textoffsetx>
                <font>IconNormal</font>
                <label>$VAR[Icon-Settings]</label>
                <focusedcolor>FocusColor</focusedcolor>
                <texturefocus />
                <onright>Dialog.Close(1118)</onright>
                <onright>ClearProperty(MediaMenu,Home)</onright>
                <onright>Control.SetFocus(50)</onright>
                <onup>SetFocus(9011,50)</onup>
                <ondown>SetFocus(9011,0)</ondown>
                <onclick>Notification($LOCALIZE[31007],$LOCALIZE[31008])</onclick>
                <onclick>ActivateWindow(1129)</onclick>
            </control>
        </control>
    </controls>
</window>
