<?xml version="1.0" encoding="UTF-8"?>
<overrides>

    <!-- Custom shortcuts -->
    <shortcut label="$LOCALIZE[24001]" type="$ADDON[script.skinshortcuts 32034]" thumbnail="DefaultAddon.png" icon="DefaultAddon.png">ActivateWindow(1119)</shortcut>
    <shortcut label="$LOCALIZE[31174]" type="$ADDON[script.skinshortcuts 32034]" thumbnail="DefaultIconPower.png" icon="DefaultIconPower.png">ActivateWindow(shutdownmenu)</shortcut>
<!--     <shortcut label="$LOCALIZE[1036]" type="$ADDON[script.skinshortcuts 32034]" thumbnail="DefaultIconFavourite.png" icon="DefaultIconFavourite.png">ActivateWindow(favouritesbrowser)</shortcut> -->

	<override action="ActivateWindow(Favourites)">
		<action>ActivateWindow(favouritesbrowser)</action>
	</override>


    <visibleoverride group="mainmenu" condition="Library.HasContent(Movies)">ActivateWindow(Videos,sources://video/,return)</visibleoverride>
    <visibleoverride group="mainmenu" condition="Library.HasContent(TVShows)">ActivateWindow(Videos,sources://video/,return)</visibleoverride>
    <visibleoverride group="mainmenu" condition="Library.HasContent(Music)">ActivateWindow(MusicLibrary,sources://music/,return)</visibleoverride>
    <visibleoverride group="mainmenu" condition="Library.HasContent(MusicVideos)">ActivateWindow(Videos,sources://video/,return)</visibleoverride>
    <visibleoverride group="mainmenu" condition="!IsEmpty(Weather.Plugin)">ReplaceWindow(servicesettings,weather)</visibleoverride>

    <!-- Menu thumbnails -->
    <thumbnailBrowseDefault>special://skin/extras/icons/</thumbnailBrowseDefault>

    <icon labelID="live tv">special://skin/extras/icons/remote.png</icon>
    <icon labelID="radio">special://skin/extras/icons/remote.png</icon>
    <icon labelID="settings">special://skin/extras/icons/settings.png</icon>
    <icon labelID="playlists">special://skin/extras/icons/playlist.png</icon>
    <icon labelID="programs">special://skin/extras/icons/program.png</icon>
    <icon labelID="sets">special://skin/extras/icons/set.png</icon>
    <icon labelID="weather">special://skin/extras/icons/weather.png</icon>
    <icon labelID="widgets">special://skin/extras/icons/widget.png</icon>
    <icon labelID="0">special://skin/extras/icons/program.png</icon>
    <icon labelID="1">special://skin/extras/icons/camera.png</icon>
    <icon labelID="2">special://skin/extras/icons/music.png</icon>
    <icon labelID="3">special://skin/extras/icons/video.png</icon>
    <icon labelID="7">special://skin/extras/icons/file.png</icon>
    <icon labelID="8">special://skin/extras/icons/weather.png</icon>
    <icon labelID="136">special://skin/extras/icons/playlist.png</icon>
    <icon labelID="360">special://skin/extras/icons/screensaver.png</icon>
    <icon labelID="400">special://skin/extras/icons/weather.png</icon>
    <icon labelID="480">special://skin/extras/icons/skin.png</icon>
    <icon labelID="589">special://skin/extras/icons/musicdisc.png</icon>
    <icon labelID="600">special://skin/extras/icons/disc.png</icon>
    <icon labelID="626">special://skin/extras/icons/progress.png</icon>
    <icon labelID="1036">special://skin/extras/icons/favourite.png</icon>
    <icon labelID="10007">special://skin/extras/icons/harddisk.png</icon>
    <icon labelID="10504">special://skin/extras/icons/music.png</icon>
    <icon labelID="10505">special://skin/extras/icons/music.png</icon>
    <icon labelID="12600">special://skin/extras/icons/weather.png</icon>
    <icon labelID="13000">special://skin/extras/icons/settings.png</icon>
    <icon labelID="13005">special://skin/extras/icons/power.png</icon>
    <icon labelID="13009">special://skin/extras/icons/power.png</icon>
    <icon labelID="13010">special://skin/extras/icons/power.png</icon>
    <icon labelID="13011">special://skin/extras/icons/power.png</icon>
    <icon labelID="13013">special://skin/extras/icons/power.png</icon>
    <icon labelID="13014">special://skin/extras/icons/screensaver.png</icon>
    <icon labelID="13016">special://skin/extras/icons/power.png</icon>
    <icon labelID="13200">special://skin/extras/icons/actor.png</icon>
    <icon labelID="13313">special://skin/extras/icons/power.png</icon>
    <icon labelID="14022">special://skin/extras/icons/folder.png</icon>
    <icon labelID="14036">special://skin/extras/icons/service.png</icon>
    <icon labelID="14111">special://skin/extras/icons/info.png</icon>
    <icon labelID="14200">special://skin/extras/icons/play.png</icon>
    <icon labelID="14202">special://skin/extras/icons/set.png</icon>
    <icon labelID="14206">special://skin/extras/icons/visualization.png</icon>
    <icon labelID="15100">special://skin/extras/icons/folder.png</icon>
    <icon labelID="16003">special://skin/extras/icons/play.png</icon>
    <icon labelID="19020">special://skin/extras/icons/tv.png</icon>
    <icon labelID="19026">special://skin/extras/icons/timer.png</icon>
    <icon labelID="20045">special://skin/extras/icons/actor.png</icon>
    <icon labelID="20077">special://skin/extras/icons/skin.png</icon>
    <icon labelID="20126">special://skin/extras/icons/power.png</icon>
    <icon labelID="20151">special://skin/extras/icons/timer.png</icon>
    <icon labelID="20434">special://skin/extras/icons/set.png</icon>
    <icon labelID="24001">special://skin/extras/icons/addon.png</icon>
    <icon labelID="24027">special://skin/extras/icons/weather.png</icon>
    <icon labelID="29956">special://skin/extras/icons/weather.png</icon>
    <icon labelID="31502">special://skin/extras/icons/remote.png</icon>
    <icon labelID="32046">special://skin/extras/icons/refresh.png</icon>
    <icon labelID="32047">special://skin/extras/icons/refresh.png</icon>
    <icon labelID="32055">special://skin/extras/icons/wand.png</icon>
    <icon labelID="32056">special://skin/extras/icons/wand.png</icon>
    <icon image="DefaultAddonVideo.png">special://skin/extras/icons/addon.png</icon>
    <icon image="DefaultAddonMusic.png">special://skin/extras/icons/addon.png</icon>

    <!-- Backgrounds -->
    <backgroundBrowse>True</backgroundBrowse>
    <background label="::PLAYLIST::">playlistBackground</background>
    <background label="31084" condition="!IsEmpty(Skin.String(weatherfanart.path))">weatherBackground</background>

    <!-- Infoline -->
    <propertySettings property="InfoLine" title="Select InfoLine" />
    <property property="InfoLine">31097</property>
    <property property="InfoLine">31098</property>
    <property property="InfoLine">31099</property>
    <property property="InfoLine">31058</property>
    <property property="InfoLine">20088</property>
    <property property="InfoLine">31082</property>
    <property property="InfoLine">130</property>
    <property property="InfoLine">31227</property>
    <property property="InfoLine">31228</property>
    <property property="InfoLine">31229</property>

    <contextmenu>
        <!-- Enable context menu on controls 211, 303 and 304 -->
        <enableon>211</enableon>

        <!-- Add enable/disable controls -->
        <item control="313" condition="String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),False)">$LOCALIZE[24021]</item>
        <item control="313" condition="String.IsEqual(Container(211).ListItem.Property(skinshortcuts-disabled),True)">$LOCALIZE[24022]</item>
        <item control="303">$LOCALIZE[31159]</item>
        <item control="304">$LOCALIZE[31160]</item>
        <item control="302">$LOCALIZE[117]</item>
        <item control="301">$LOCALIZE[15019]</item>
        <item control="308">$ADDON[script.skinshortcuts 32028]</item>
    </contextmenu>

    <warn heading="$LOCALIZE[750]" message="$LOCALIZE[31072]">ActivateWindow(Settings)</warn>

    <!-- Widgets -->
    <widget label="1036" icon="DefaultIconFavourite.png" name="1036" type="" path="favourites://" target="">myfavorites</widget>
    <widget label="31244" condition="System.HasPVRAddon" icon="DefaultAddonPVRClient.png" name="31244" type="" path="pvr://channels/tv/*?view=lastplayed" target="pvr">recentchannels</widget>
    <widget label="31315" condition="System.HasPVRAddon" icon="DefaultAddonPVRClient.png" name="31315" type="" path="pvr://recordings/tv/active?view=flat" target="pvr">recentrecordings</widget>
    <widget label="136" icon="DefaultPlaylist.png" name="136" type="videos" path="special://videoplaylists/" target="video">myplaylists</widget>
    <widget label="5">settings</widget>
    <widget label="1034" icon="DefaultFile.png" name="1034" type="" path="$INCLUDE[skinshortcuts-submenu]" target="">mysubmenu</widget>
    <widget label="12600" condition="!IsEmpty(Weather.Plugin)">weather</widget>

    <!-- Widget Icon Aspect Ratio -->
    <propertySettings property="widgetIcon" title="$LOCALIZE[31242]" showNone="False" />
    <property property="widgetIcon">$LOCALIZE[21371]</property>
    <property property="widgetIcon">$LOCALIZE[20021]</property>
    <property property="widgetIcon">$LOCALIZE[20445]</property>
    <property property="widgetIcon">$LOCALIZE[31100]</property>
    <property property="widgetIcon">$LOCALIZE[31088]</property>

    <!-- Widget Sort By -->
    <propertySettings property="widgetSortBy" title="$LOCALIZE[31155]" showNone="True" />
    <property property="widgetSortBy" label="$LOCALIZE[552]">date</property>
    <property property="widgetSortBy" label="$LOCALIZE[568]">lastplayed</property>
    <property property="widgetSortBy" label="$LOCALIZE[12012]">lastused</property>
    <property property="widgetSortBy" label="$LOCALIZE[551]">sorttitle</property>
    <property property="widgetSortBy" label="$LOCALIZE[563]">rating</property>
    <property property="widgetSortBy" label="$LOCALIZE[562]">year</property>

    <!-- Widget Sort Direction -->
    <propertySettings property="widgetSortDirection" title="$LOCALIZE[31156]" showNone="True" />
    <property property="widgetSortDirection" label="$LOCALIZE[584]">ascending</property>
    <property property="widgetSortDirection" label="$LOCALIZE[585]">descending</property>

    <!-- Widget Limit -->
    <propertySettings property="widgetLimit" title="Item limit" showNone="True" />
    <property property="widgetLimit" label="$NUMBER[8]">$NUMBER[8]</property>
    <property property="widgetLimit" label="$NUMBER[10]">$NUMBER[10]</property>
    <property property="widgetLimit" label="$NUMBER[12]">$NUMBER[12]</property>
    <property property="widgetLimit" label="$NUMBER[16]">$NUMBER[16]</property>
    <property property="widgetLimit" label="$NUMBER[20]">$NUMBER[20]</property>
    <property property="widgetLimit" label="$NUMBER[24]">$NUMBER[24]</property>
    <property property="widgetLimit" label="$NUMBER[30]">$NUMBER[30]</property>
    <property property="widgetLimit" label="$NUMBER[36]">$NUMBER[36]</property>

    <!-- Widget Defaults -->
    <widgetdefaultnode defaultID="movies" group="mainmenu" label="20386" type="movies" path="videodb://recentlyaddedmovies/" target="video">recentlyaddedmovies</widgetdefaultnode>
    <widgetdefaultnode defaultID="tvshows" group="mainmenu" label="626" type="tvshows" path="videodb://inprogresstvshows/" target="video">nextepisodes</widgetdefaultnode>
    <widgetdefaultnode defaultID="livetv" group="mainmenu" label="31241" type="" path="pvr://channels/tv/*?view=lastplayed" target="pvr">recentchannels</widgetdefaultnode>
    <widgetdefaultnode defaultID="music" group="mainmenu" label="359" type="albums" path="musicdb://recentlyaddedalbums/" target="music">recentalbums</widgetdefaultnode>
    <widgetdefaultnode defaultID="musicvideos" group="mainmenu" label="20390" type="musicvideos" path="videodb://recentlyaddedmusicvideos/" target="video">recentlyaddedmusicvideos</widgetdefaultnode>
    <widgetdefaultnode defaultID="games" group="mainmenu" label="1036" type="programs" path="plugin://plugin.program.advanced.emulator.launcher/?com=SHOW_FAVOURITES" target="programs">favgames</widgetdefaultnode>
    <widgetdefaultnode defaultID="add-ons" group="mainmenu" label="1037" type="movies" path="addons://sources/video/" target="video">videoaddons</widgetdefaultnode>
    <widgetdefaultnode defaultID="favorites" group="mainmenu" label="1036" type="" path="favourites://" target="">favorites</widgetdefaultnode>
    <widgetdefaultnode defaultID="script.globalsearch" group="mainmenu" label="136" type="videos" path="special://videoplaylists/" target="video">myplaylists</widgetdefaultnode>
    <widgetdefault labelID="weather" group="mainmenu">weather</widgetdefault>
    <widgetdefault labelID="settings" group="mainmenu">settings</widgetdefault>
        
    <propertydefault defaultID="movies" property="widgetIcon">20021</propertydefault>
    <propertydefault defaultID="tvshows" property="widgetIcon">20021</propertydefault>
    <propertydefault defaultID="tvshows" property="widgetSortBy">lastplayed</propertydefault>
    <propertydefault defaultID="tvshows" property="widgetSortDirection">descending</propertydefault>
    <propertydefault defaultID="livetv" property="widgetSortBy">lastplayed</propertydefault>
    <propertydefault defaultID="livetv" property="widgetSortDirection">descending</propertydefault>
    <propertydefault defaultID="add-ons" property="widgetSortBy">lastused</propertydefault>
    <propertydefault defaultID="add-ons" property="widgetSortDirection">descending</propertydefault>
    <propertydefault defaultID="script.globalsearch" property="widgetIcon">20445</propertydefault>

</overrides>
