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

	<include name="musicosd_Top_Row_Content">
		<control type="button" id="3">
			<include content="Simple_Button_Template">
				<param name="description" value="Previous" />
				<param name="icon" value="Rewind" />
			</include>
			<onfocus>SetProperty(MusicOSD_Controls,$VAR[Play_Pause_Label],musicosd)</onfocus>
			<onclick>PlayerControl(Previous)</onclick>
			<onclick>SetProperty(MusicOSD_Controls,$VAR[Play_Pause_Label],musicosd)</onclick>
			<onup>60</onup>
			<ondown>9</ondown>
		</control>
		<control type="button" id="6">
			<include content="Simple_Button_Template">
				<param name="description" value="Rewind" />
				<param name="icon" value="Previous" />
			</include>
			<onfocus>SetProperty(MusicOSD_Controls,$LOCALIZE[31302],musicosd)</onfocus>
			<onclick>PlayerControl(Rewind)</onclick>
			<onup>60</onup>
			<ondown>8</ondown>
		</control>
		<control type="togglebutton" id="1">
			<description>Play/Pause</description>
			<width>60</width>
			<height>60</height>
			<texturefocus colordiffuse="$VAR[Light_Color]">osd/icon_Play_focused.png</texturefocus>
			<texturenofocus colordiffuse="$VAR[Light_Color]">osd/icon_Play_unfocused.png</texturenofocus>
			<usealttexture>![Player.Paused | Player.Forwarding | Player.Rewinding]</usealttexture>
			<alttexturefocus colordiffuse="$VAR[Light_Color]">osd/icon_Pause_focused.png</alttexturefocus>
			<alttexturenofocus colordiffuse="$VAR[Light_Color]">osd/icon_Pause_unfocused.png</alttexturenofocus>
			<onfocus>SetProperty(MusicOSD_Controls,$VAR[Play_Pause_Label],musicosd)</onfocus>
			<onclick>PlayerControl(Play)</onclick>
			<onclick>SetProperty(MusicOSD_Controls,$VAR[Play_Pause_Label],musicosd)</onclick>
			<onup>60</onup>
			<ondown>2</ondown>
		</control>
		<control type="button" id="7">
			<include content="Simple_Button_Template">
				<param name="description" value="Forward" />
				<param name="icon" value="Next" />
			</include>
			<onfocus>SetProperty(MusicOSD_Controls,$LOCALIZE[31303],musicosd)</onfocus>
			<onclick>PlayerControl(Forward)</onclick>
			<onup>60</onup>
			<ondown>5</ondown>
		</control>
		<control type="togglebutton" id="4">
			<description>Next</description>
			<width>60</width>
			<height>60</height>
			<texturefocus colordiffuse="$VAR[Light_Color]">osd/icon_Forward_focused.png</texturefocus>
			<texturenofocus colordiffuse="$VAR[Light_Color]">osd/icon_Forward_unfocused.png</texturenofocus>
			<usealttexture>!MusicPlayer.HasNext</usealttexture>
			<alttexturefocus colordiffuse="$VAR[Light_Color]">osd/icon_NoForward_focused.png</alttexturefocus>
			<alttexturenofocus colordiffuse="$VAR[Light_Color]">osd/icon_NoForward_unfocused.png</alttexturenofocus>
			<onfocus>SetProperty(MusicOSD_Controls,$LOCALIZE[209],musicosd)</onfocus>
			<onclick condition="MusicPlayer.HasNext">PlayerControl(Next)</onclick>
			<onup>60</onup>
			<ondown condition="!Skin.String(Music_Rating_Like_Threshold)">10</ondown>
			<ondown condition="Skin.String(Music_Rating_Like_Threshold)">11</ondown>
		</control>
	</include>

	<include name="musicosd_Bottom_Row_Content">
		<control type="togglebutton" id="9">
			<description>Random</description>
			<width>60</width>
			<height>60</height>
			<texturefocus colordiffuse="$VAR[Light_Color]">osd/icon_Random_focused.png</texturefocus>
			<texturenofocus colordiffuse="$VAR[Light_Color]">osd/icon_Random_unfocused.png</texturenofocus>
			<usealttexture>!Playlist.IsRandom</usealttexture>
			<alttexturefocus colordiffuse="$VAR[Light_Color]">osd/icon_NotRandom_focused.png</alttexturefocus>
			<alttexturenofocus colordiffuse="$VAR[Light_Color]">osd/icon_NotRandom_unfocused.png</alttexturenofocus>
			<onfocus>SetProperty(MusicOSD_Controls,$VAR[Random_Button_Label],musicosd)</onfocus>
			<onclick>PlayerControl(Random)</onclick>
			<onclick>SetProperty(MusicOSD_Controls,$VAR[Random_Button_Label],musicosd)</onclick>
			<onup>3</onup>
			<ondown>60</ondown>
		</control>
		<control type="group" id="9005">
			<description>Repeat</description>
			<width>60</width>
			<height>60</height>
			<control type="button" id="8">
				<visible allowhiddenfocus="true">false</visible>
				<onfocus>SetProperty(MusicOSD_Controls,$VAR[Repeat_Button_Label],musicosd)</onfocus>
				<onclick>PlayerControl(Repeat)</onclick>
				<onclick>SetProperty(MusicOSD_Controls,$VAR[Repeat_Button_Label],musicosd)</onclick>
				<onup>6</onup>
				<ondown>60</ondown>
				<onleft>9</onleft>
				<onright>2</onright>
			</control>
			<control type="image">
				<texture colordiffuse="$VAR[Light_Color]">$VAR[Repeat_Button_Icon_Texture]</texture>
			</control>
		</control>
		<control type="button" id="2">
			<include content="Simple_Button_Template">
				<param name="description" value="Stop" />
				<param name="icon" value="Stop" />
			</include>
			<onfocus>SetProperty(MusicOSD_Controls,$LOCALIZE[31301],musicosd)</onfocus>
			<onclick>PlayerControl(Stop)</onclick>
			<onup>1</onup>
			<ondown>60</ondown>
		</control>
		<control type="button" id="5">
			<include content="Simple_Button_Template">
				<param name="description" value="Playlist" />
				<param name="icon" value="Album" />
			</include>
			<onfocus>SetProperty(MusicOSD_Controls,$LOCALIZE[31305],musicosd)</onfocus>
			<onclick>Dialog.Close(all, true)</onclick>
			<onclick>ActivateWindow(musicplaylist)</onclick>
			<onup>7</onup>
			<ondown>60</ondown>
		</control>
		<!-- Rating -->
		<control type="button" id="10">
			<visible>!Skin.String(Music_Rating_Like_Threshold)</visible>
			<include content="Simple_Button_Template">
				<param name="description" value="Rating" />
				<param name="icon" value="Bookmarks" />
			</include>
			<onfocus>SetProperty(MusicOSD_Controls,$LOCALIZE[31304],musicosd)</onfocus>
			<onclick>Dialog.Close(all, true)</onclick>
			<onclick>SetRating</onclick>
			<onup>4</onup>
			<ondown>60</ondown>
		</control>
		<control type="togglebutton" id="11">
			<visible>Skin.String(Music_Rating_Like_Threshold) + System.AddonIsEnabled(script.copacetic.helper)</visible>
			<description>Like/Unlike</description>
			<width>60</width>
			<height>60</height>
			<texturefocus colordiffuse="$VAR[Light_Color]">osd/icon_Like_focused.png</texturefocus>
			<texturenofocus colordiffuse="$VAR[Light_Color]">osd/icon_Like_unfocused.png</texturenofocus>
			<usealttexture>!Integer.IsLess(Window(home).Property(MusicPlayer_UserRating),Skin.String(Music_Rating_Like_Threshold))</usealttexture>
			<alttexturefocus colordiffuse="$VAR[Accent_Color]">osd/icon_Unlike_focused.png</alttexturefocus>
			<alttexturenofocus colordiffuse="$VAR[Accent_Color]">osd/icon_Unlike_unfocused.png</alttexturenofocus>
			<onfocus>SetProperty(MusicOSD_Controls,$VAR[Like_Button_Label],musicosd)</onfocus>
			<onclick>RunScript(script.copacetic.helper,action=rate_song,id=$INFO[MusicPlayer.DBID],rating=$INFO[Skin.String(Music_Rating_Like_Threshold)])</onclick>
			<altclick>RunScript(script.copacetic.helper,action=rate_song,id=$INFO[MusicPlayer.DBID],rating=0)</altclick>
			<onup>4</onup>
			<ondown>60</ondown>
		</control>
	</include>

	<include name="videoosd_Top_Row_Content">
		<control type="button" id="1">
			<include content="Simple_Button_Template">
				<param name="description" value="Previous" />
				<param name="icon" value="Rewind" />
			</include>
			<onfocus>SetProperty(VideoOSD_Controls,$LOCALIZE[210],videoosd)</onfocus>
			<onclick>PlayerControl(Previous)</onclick>
			<onup>60</onup>
			<ondown>6</ondown>
		</control>
		<control type="button" id="2">
			<include content="Simple_Button_Template">
				<param name="description" value="Rewind" />
				<param name="icon" value="Previous" />
			</include>
			<onfocus>SetProperty(VideoOSD_Controls,$LOCALIZE[31302],videoosd)</onfocus>
			<onclick>PlayerControl(Rewind)</onclick>
			<onup>60</onup>
			<ondown>7</ondown>
		</control>
		<control type="togglebutton" id="3">
			<description>Play/Pause</description>
			<width>60</width>
			<height>60</height>
			<texturefocus colordiffuse="$VAR[Light_Color]">osd/icon_Play_focused.png</texturefocus>
			<texturenofocus colordiffuse="$VAR[Light_Color]">osd/icon_Play_unfocused.png</texturenofocus>
			<usealttexture>![Player.Paused | Player.Forwarding | Player.Rewinding]</usealttexture>
			<alttexturefocus colordiffuse="$VAR[Light_Color]">osd/icon_Pause_focused.png</alttexturefocus>
			<alttexturenofocus colordiffuse="$VAR[Light_Color]">osd/icon_Pause_unfocused.png</alttexturenofocus>
			<onfocus>SetProperty(VideoOSD_Controls,$VAR[Play_Pause_Label],videoosd)</onfocus>
			<onclick>PlayerControl(Play)</onclick>
			<onclick>SetProperty(VideoOSD_Controls,$VAR[Play_Pause_Label],videoosd)</onclick>
			<onup>60</onup>
			<ondown>8</ondown>
		</control>
		<control type="button" id="4">
			<include content="Simple_Button_Template">
				<param name="description" value="Forward" />
				<param name="icon" value="Next" />
			</include>
			<onfocus>SetProperty(VideoOSD_Controls,$LOCALIZE[31303],videoosd)</onfocus>
			<onclick>PlayerControl(Forward)</onclick>
			<onup>9</onup>
			<ondown>9</ondown>
		</control>
		<control type="button" id="5">
			<include content="Simple_Button_Template">
				<param name="description" value="Next" />
				<param name="icon" value="Forward" />
			</include>
			<onfocus>SetProperty(VideoOSD_Controls,$LOCALIZE[209],videoosd)</onfocus>
			<onclick>PlayerControl(Next)</onclick>
			<onup>60</onup>
			<ondown>10</ondown>
		</control>
	</include>

	<include name="videoosd_Bottom_Row_Content">
		<control type="button" id="6">
			<include content="Simple_Button_Template">
				<param name="description" value="Bookmarks" />
				<param name="icon" value="Bookmarks" />
			</include>
			<onfocus>SetProperty(VideoOSD_Controls,$LOCALIZE[298],videoosd)</onfocus>
			<onclick>Dialog.Close(all, true)</onclick>
			<onclick>ActivateWindow(videobookmarks)</onclick>
			<visible>!VideoPlayer.Content(LiveTV)</visible>
			<onup>1</onup>
			<ondown>60</ondown>
		</control>
		<control type="button" id="7">
			<include content="Simple_Button_Template">
				<param name="description" value="Video OSD settings" />
				<param name="icon" value="Settings-Video" />
			</include>
			<onfocus>SetProperty(VideoOSD_Controls,$LOCALIZE[10123],videoosd)</onfocus>
			<onclick>ActivateWindow(osdvideosettings)</onclick>
			<onup>2</onup>
			<ondown>60</ondown>
		</control>
		<control type="button" id="8">
			<include content="Simple_Button_Template">
				<param name="description" value="Stop" />
				<param name="icon" value="Stop" />
			</include>
			<onfocus>SetProperty(VideoOSD_Controls,$LOCALIZE[31301],videoosd)</onfocus>
			<onclick>PlayerControl(Stop)</onclick>
			<onup>3</onup>
			<ondown>60</ondown>
		</control>
		<control type="button" id="9">
			<include content="Simple_Button_Template">
				<param name="description" value="Audio OSD Settings" />
				<param name="icon" value="Settings-Sound" />
			</include>
			<onfocus>SetProperty(VideoOSD_Controls,$LOCALIZE[10124],videoosd)</onfocus>
			<onclick>ActivateWindow(osdaudiosettings)</onclick>
			<onup>4</onup>
			<ondown>60</ondown>
		</control>
		<control type="button" id="10">
			<include content="Simple_Button_Template">
				<param name="description" value="Subtitle OSD settings" />
				<param name="icon" value="Subtitles" />
			</include>
			<onclick>ActivateWindow(OSDSubtitleSettings)</onclick>
			<onfocus>SetProperty(VideoOSD_Controls,$LOCALIZE[10159],videoosd)</onfocus>
			<visible>!VideoPlayer.Content(LiveTV)</visible>
			<onup>5</onup>
			<ondown>60</ondown>
		</control>
	</include>

</includes>