<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">50</defaultcontrol>
  <menucontrol>9000</menucontrol>
	<backgroundcolor>bgcolor</backgroundcolor>
	<views>50,660,56,560</views>
	<controls>
		<include>BackgroundItems</include>
		<include>AddonsViews</include>
		<include>CommonItems</include>

		<!-- ================ -->
		<!-- Top Options Menu -->
		<!-- ================ -->
		<control type="group"  id="9000">
			<defaultcontrol always="true">9111</defaultcontrol>
			<include>TextViewerHideAnimations</include>
			<include>ShutdownMenuAnimation</include>
			<!-- Options -->
			<control type="group">
				<left>30</left>
				<top>25</top>
				<include>OptionsTopMenuAnimation</include>
				<include>OptionsTopMenuHeader</include>
				<visible allowhiddenfocus="true">!ControlGroup(9222).HasFocus</visible>
				<control type="grouplist" id="9111">
					<include>OptionsTopMenuVars</include>
					<control type="button" id="280">
						<description>View as</description>
						<include>TopLeftMenusButton</include>
						<label>$INFO[Control.GetLabel(2)]</label>
						<onclick>SetFocus(9222)</onclick>
					</control>
					<control type="togglebutton" id="296">
						<description>Change Thumbs Size (AddonsThumbnails)</description>
						<include>TopLeftMenusButton</include>
						<label>$LOCALIZE[31098]</label>
						<altlabel>$LOCALIZE[31099]</altlabel>
						<onclick>Skin.ToggleSetting(ShowSmallAddonsThumbs)</onclick>
						<selected>Skin.HasSetting(ShowSmallAddonsThumbs)</selected>
						<visible>Control.IsVisible(560) + $EXP[ThumbnailsViewAddons_560]</visible>
					</control>
					<control type="togglebutton" id="282">
						<description>Disable Poster Glow</description>
						<include>TopLeftMenusButton</include>
						<label>$LOCALIZE[31100]: $LOCALIZE[16041]</label>
						<altlabel>$LOCALIZE[31100]: $LOCALIZE[16039]</altlabel>
						<onclick>Skin.ToggleSetting(DisableAddonsListView_PosterGlow)</onclick>
						<selected>Skin.HasSetting(DisableAddonsListView_PosterGlow)</selected>
						<visible>Control.IsVisible(50) + [Window.IsVisible(AddonBrowser.xml) + Container.HasFiles]</visible>
					</control>
					<control type="button" id="311">
						<description>Sort by</description>
						<include>TopLeftMenusButton</include>
						<label>$INFO[Control.GetLabel(3)]</label>
						<onclick>Action(left)</onclick>
						<onclick>SendClick(3)</onclick>
						<enable>Control.IsEnabled(3)</enable>
					</control>
					<control type="togglebutton" id="4">
						<description>Sort Ascending/Descending</description>
						<label>$LOCALIZE[21429]: $LOCALIZE[584]</label>
						<altlabel>$LOCALIZE[21429]: $LOCALIZE[585]</altlabel>
						<include>TopLeftMenusButton</include>
					</control>
					<control type="button" id="9">
						<description>Check for Updates</description>
						<label>$LOCALIZE[24034]</label>
						<include>TopLeftMenusButton</include>
					</control>
					<control type="togglebutton" id="7">
						<description>Hide Foreign</description>
						<label>$LOCALIZE[25001]: $LOCALIZE[16039]</label>
						<altlabel>$LOCALIZE[25001]: $LOCALIZE[16041]</altlabel>
						<include>TopLeftMenusButton</include>
						<visible>Control.IsEnabled(7)</visible>
					</control>
					<control type="togglebutton" id="8">
						<description>Hide Incompatible</description>
						<label>$LOCALIZE[24999]: $LOCALIZE[16039]</label>
						<altlabel>$LOCALIZE[24999]: $LOCALIZE[16041]</altlabel>
						<include>TopLeftMenusButton</include>
						<visible>Control.IsEnabled(8)</visible>
					</control>
					<control type="button" id="5">
						<description>Settings</description>
						<include>TopLeftMenusButton</include>
						<label>$LOCALIZE[10004]</label>
					</control>
					<include>OptionsTopMenuEnd</include>
				</control>
			</control>

			<!-- Views -->
			<control type="group">
				<left>30</left>
				<top>25</top>
				<include>OptionsTopMenuAnimation</include>
				<include>ViewsTopMenuHeader</include>
				<visible allowhiddenfocus="true">ControlGroup(9222).HasFocus</visible>
				<control type="grouplist" id="9222">
					<include content="OptionsTopMenuVars">
						<param name="top_id" value="997"/>
					</include>
					<control type="button" id="940">
						<description>List</description>
						<include>TopLeftMenusButton</include>
						<label>$LOCALIZE[535]$VAR[ActiveViewList, (,)]</label>
						<onclick>Container.SetViewMode(50)</onclick>
					</control>
					<control type="button" id="959">
						<description>BelloView Generic</description>
						<include>TopLeftMenusButton</include>
						<label>Bello$VAR[ActiveViewBello, (,)]</label>
						<onclick>Container.SetViewMode(660)</onclick>
						<visible>$EXP[BelloViewGeneric_660]</visible>
					</control>
					<control type="button" id="945">
						<description>ThumbnailsGeneric</description>
						<include>TopLeftMenusButton</include>
						<label>$LOCALIZE[31085]$VAR[ActiveViewThubnails, (,)]</label>
						<onclick>Container.SetViewMode(56)</onclick>
						<visible>$EXP[ThumbnailsViewGeneric_56]</visible>
					</control>
					<control type="button" id="946">
						<description>ThumbnailsAddons</description>
						<include>TopLeftMenusButton</include>
						<label>$LOCALIZE[31085]$VAR[ActiveViewThubnails, (,)]</label>
						<onclick>Container.SetViewMode(560)</onclick>
						<visible>$EXP[ThumbnailsViewAddons_560]</visible>
					</control>
					<include content="ViewsTopMenuEnd">
						<param name="end_id" value="996"/>
					</include>
				</control>
			</control>
		</control>

		<!-- ================ -->
		<!-- Top Content Info -->
		<!-- ================ -->
		<control type="group">
			<left>45</left>
			<top>25</top>
			<include>ShutdownMenuAnimation</include>
			<include>InfoDialogs_ContentInfoAnimation</include>
			<include>VisibleHiddenSlideAnimation</include>
			<visible>!ControlGroup(9000).HasFocus</visible>
			<control type="grouplist">
				<include>CommonTopInfoGroupList</include>
				<include>OpenCloseSlideAnimationTwo</include>
				<control type="label">
					<include>TopBigLabel</include>
					<label>$LOCALIZE[24001]</label>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$INFO[Window.Property(Updated),$LOCALIZE[31229]: ]</label>
					<visible>String.EndsWith(Container.FolderPath,addons://)</visible>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$INFO[Container.Property(RepoName)]</label>
					<visible>!String.IsEmpty(Container.Property(RepoName))</visible>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$INFO[Container.Property(AddonCategory)]</label>
					<visible>!String.IsEmpty(Container.Property(AddonCategory))</visible>
				</control>
				<control type="label">
					<include>TopSmallLabel</include>
					<label>$INFO[Container.FolderName]</label>
					<visible>[String.IsEmpty(Container.Property(RepoName)) + String.IsEmpty(Container.Property(AddonCategory))] + !String.EndsWith(Container.FolderPath,addons://)</visible>
				</control>
			</control>
		</control>

		<include>HiddenDefaultButtons</include>
		<include>JumpToFirstSortLetter</include>
		<include>CommonWeatherAndClock</include>
	</controls>
</window>
