<?xml version="1.0" encoding="UTF-8"?>
<includes>
    
    <include name="OSDFocusStop"><defaultcontrol always="true">15</defaultcontrol></include>
    <include name="OSDFocusPause"><defaultcontrol always="true">14</defaultcontrol></include>
    
    <include name="OSDInfoContent">
        <right>0</right>
        <control type="label" description="Video Info">
            <right>0</right>
            <align>right</align>
            <width>1000</width>
            <top>0</top>
            <height>40</height>
            <font>Flag</font>
            <textcolor>$VAR[OSDPanelWhite30]</textcolor>
            <label>$INFO[VideoPlayer.AudioCodec,,  •  ]$VAR[LabelOSDAudioChannels,,  •  ]$INFO[VideoPlayer.VideoResolution,,  •  ]$INFO[VideoPlayer.VideoCodec,,]$INFO[VideoPlayer.RatingAndVotes,  •  ,]</label>
            <visible>!Skin.HasSetting(furniture.flagicons)</visible>
        </control>
        
        <control type="grouplist">
            <visible>Skin.HasSetting(furniture.flagicons)</visible>
            <include>Animation.FadeIn</include>
            <include>Animation.FadeOut</include>
            <right>0</right>
            <centertop>45</centertop>
            <width>1400</width>
            <height>64</height>
            <orientation>horizontal</orientation>
            <align>right</align>
            <itemgap>12</itemgap>
            <usecontrolcoords>true</usecontrolcoords>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="$VAR[OSDPanelWhite70]" fallback="flags/fallback.png">$INFO[VideoPlayer.VideoResolution,flags/resolution/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>!IsEmpty(VideoPlayer.VideoResolution)</visible>
            </control>

            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="$VAR[OSDPanelWhite70]" fallback="flags/fallback.png">$INFO[VideoPlayer.VideoCodec,flags/source/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>!IsEmpty(VideoPlayer.VideoCodec)</visible>
            </control>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="$VAR[OSDPanelWhite70]" fallback="flags/fallback.png">$INFO[VideoPlayer.VideoAspect,flags/aspectratio/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>!IsEmpty(VideoPlayer.VideoAspect)</visible>
            </control>

            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="$VAR[OSDPanelWhite70]" fallback="flags/fallback.png">$INFO[VideoPlayer.AudioCodec,flags/audio/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>!IsEmpty(VideoPlayer.AudioCodec)</visible>
            </control>

            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="$VAR[OSDPanelWhite70]" fallback="flags/fallback.png">$INFO[VideoPlayer.AudioChannels,flags/channels/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>!IsEmpty(VideoPlayer.AudioChannels)</visible>
            </control>

            <control type="image">
                <width>64</width>
                <height>64</height>
                <texture colordiffuse="$VAR[OSDPanelWhite70]">flags/3D.png</texture>
                <visible>VideoPlayer.IsStereoscopic</visible>
            </control>
            
            <control type="image">
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="$VAR[OSDPanelWhite70]">flags/star10.png</texture>
            </control>
            <control type="label">
                <left>-16</left>
                <width min="48">auto</width>
                <centertop>50%</centertop>
                <height>64</height>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[VideoPlayer.Rating]</label>
                <font>Flag</font>
                <textcolor>$VAR[OSDPanelWhite70]</textcolor>
            </control>            
        </control>

        <control type="label" description="Title">
            <width>1000</width>
            <top>0</top>
            <height>40</height>
            <font>TinyBold</font>
            <textcolor>$VAR[OSDPanelWhite70]</textcolor>
            <label>$VAR[PlayerTitle]</label>
            <visible>!Skin.HasSetting(furniture.flagicons)</visible>
        </control>
        <control type="label" description="Title">
            <width>850</width>
            <top>0</top>
            <height>40</height>
            <font>TinyBold</font>
            <textcolor>$VAR[OSDPanelWhite70]</textcolor>
            <label>$VAR[PlayerTitle]</label>
            <visible>Skin.HasSetting(furniture.flagicons)</visible>
        </control>

        <control type="label" description="Show">
            <width>100%</width>
            <top>50</top>
            <height>40</height>
            <font>MediumBold</font>
            <textcolor>$VAR[OSDPanelWhite70]</textcolor>
            <label>$VAR[PlayerBigTitle]</label>
            <visible>!Skin.HasSetting(furniture.flagicons)</visible>
        </control>
        <control type="label" description="Show">
            <width>850</width>
            <top>50</top>
            <height>40</height>
            <font>MediumBold</font>
            <textcolor>$VAR[OSDPanelWhite70]</textcolor>
            <label>$VAR[PlayerBigTitle]</label>
            <visible>Skin.HasSetting(furniture.flagicons)</visible>
        </control>
        
        <control type="textbox" description="Plot">
            <width>100%</width>
            <top>105</top>
            <height>68</height>
            <font>Tiny</font>
            <align>justify</align>
            <textcolor>$VAR[OSDPanelWhite30]</textcolor>
            <label>$VAR[PlayerPlotBox]</label>
        </control>
        
        <control type="label" description="Elapsed Time">
            <width>400</width>
            <bottom>30</bottom>
            <height>40</height>
            <font>Tiny</font>
            <textcolor>$VAR[OSDPanelWhite70]</textcolor>
            <label>$VAR[PlayerStatus]</label>
        </control>
        <control type="label" description="Total Time">
            <right>0</right>
            <align>right</align>
            <width>400</width>
            <bottom>30</bottom>
            <height>40</height>
            <font>Tiny</font>
            <textcolor>$VAR[OSDPanelWhite70]</textcolor>
            <label>$INFO[Player.Time]  /  $INFO[Player.Duration]</label>
        </control>
        <control type="progress" description="cache">
            <description>Progress Bar</description>
            <width>100%</width>
            <bottom>10</bottom>
            <height>8</height>
            <info>Player.ProgressCache</info>
            <visible>true</visible>
            <texturebg colordiffuse="00ffffff">osd/progress-bg.png</texturebg>
            <lefttexture colordiffuse="Highlight2">osd/progress-end.png</lefttexture>
            <midtexture colordiffuse="Highlight2">osd/progress-end.png</midtexture>
            <righttexture colordiffuse="Highlight2">osd/progress-end.png</righttexture>
        </control>
        <control type="progress" id="23">
            <description>Progress Bar</description>
            <width>100%</width>
            <bottom>10</bottom>
            <height>8</height>
            <info>Player.Progress</info>
        </control>
    </include>
    <include name="DefOSDButtons">
        <aligny>center</aligny>
        <align>center</align>
        <height>48</height>
        <font>Tiny</font>
        <disabledcolor>$VAR[OSDPanelWhite12]</disabledcolor>
        <textcolor>$VAR[OSDPanelWhite30]</textcolor>
        <focusedcolor>$VAR[ColorHighlight]</focusedcolor>
        <texturefocus>noop</texturefocus>
        <width>226</width>
    </include>
    
    <include name="DefOSDUpDown">
        <onup condition="IsEmpty(Window(home).Property(osdshowinfo)) + !Window.IsVisible(MusicOSD.xml)">SetProperty(osdshowinfo,1,home)</onup>
        <onup condition="!IsEmpty(Window(home).Property(osdshowinfo)) + !Window.IsVisible(MusicOSD.xml)">ClearProperty(osdshowinfo,home)</onup>
        <ondown condition="IsEmpty(Window(home).Property(osdshowinfo)) + !Window.IsVisible(MusicOSD.xml)">SetProperty(osdshowinfo,1,home)</ondown>
        <ondown condition="!IsEmpty(Window(home).Property(osdshowinfo)) + !Window.IsVisible(MusicOSD.xml)">ClearProperty(osdshowinfo,home)</ondown>
        <onup condition="Window.IsVisible(MusicOSD.xml)">9100</onup>
        <ondown condition="Window.IsVisible(MusicOSD.xml)">9100</ondown>
        <!-- <onup condition="Window.IsVisible(MusicOSD.xml)">IncreaseRating</onup>
        <ondown condition="Window.IsVisible(MusicOSD.xml)">DecreaseRating</ondown> -->
    </include>
    
    <include name="OSDVideosRight">
        <control type="button" id="5">
            <description>3D Mode</description>
            <align>right</align>
            <label>31117</label>
            <onclick>StereoMode</onclick>
            <include>DefOSDButtons</include>
            <enable>VideoPlayer.IsStereoscopic</enable>
            <disabledcolor>PanelWhite12</disabledcolor>
        </control>

        <control type="button" id="6">
            <description>BookMarks</description>
            <align>right</align>
            <include>DefOSDButtons</include>
            <label>298</label>
            <onclick>ActivateWindow(125)</onclick>
        </control>
    </include>
    <include name="OSDPVRRight">
        <control type="button" id="4">
            <description>CHANNELS</description>
            <align>right</align>
            <label>19019</label>
            <include>DefOSDButtons</include>
            <onclick>ActivateWindow(pvrosdchannels)</onclick>
        </control>
        <control type="button" id="5">
            <description>EPG</description>
            <align>right</align>
            <label>$LOCALIZE[19030] / $LOCALIZE[19031]</label>
            <onclick>ActivateWindow(pvrosdguide)</onclick>
            <include>DefOSDButtons</include>
        </control>

        <control type="button" id="6">
            <description>TIMELINE</description>
            <align>right</align>
            <include>DefOSDButtons</include>
            <label>19032</label>
            <onclick>Close</onclick>
            <onclick>ActivateWindow(tvguide,,return)</onclick>
        </control>
    </include>
    <include name="OSDDVDMenu">
        <control type="button" id="4">
            <description>DVD Menu</description>
            <label>$LOCALIZE[31116]</label>
            <align>right</align>
            <include>DefOSDButtons</include>
            <onclick>PlayerControl(ShowVideoMenu)</onclick>
            <enable>VideoPlayer.HasMenu</enable>
            <disabledcolor>White12</disabledcolor>
        </control>
    </include>
    <include name="OSDExtraInfoTV">
        <control type="button" id="4">
            <description>Info</description>
            <label>31147</label>
            <align>right</align>
            <include>DefOSDButtons</include>
            <onclick>Close</onclick>
            <onclick>RunScript(script.extendedinfo,info=extendedtvinfo,name=$INFO[VideoPlayer.TvShowTitle])</onclick>
            <disabledcolor>White12</disabledcolor>
        </control>
    </include>
    <include name="OSDExtraInfoMOVIES">
        <control type="button" id="4">
            <description>Info</description>
            <label>31147</label>
            <align>right</align>
            <include>DefOSDButtons</include>
            <onclick>Close</onclick>
            <onclick>RunScript(script.extendedinfo,info=extendedinfo,name=$INFO[VideoPlayer.Title])</onclick>
            <disabledcolor>White12</disabledcolor>
        </control>
    </include>
    
    <variable name="OSDPanel">
        <value condition="[Skin.HasSetting(osd.usetheme)] | [!Window.IsVisible(fullscreenvideo) + !Window.IsVisible(visualisation)]">Background</value>
        <value>OSDBack</value>
    </variable>
    <variable name="OSDPanelWhite12">
        <value condition="[Skin.HasSetting(osd.usetheme)] | [!Window.IsVisible(fullscreenvideo) + !Window.IsVisible(visualisation)]">Dark3</value>
        <value>PanelWhite12</value>
    </variable>
    <variable name="OSDPanelWhite30">
        <value condition="[Skin.HasSetting(osd.usetheme)] | [!Window.IsVisible(fullscreenvideo) + !Window.IsVisible(visualisation)]">Dark2</value>
        <value>PanelWhite30</value>
    </variable>
    <variable name="OSDPanelWhite70">
        <value condition="[Skin.HasSetting(osd.usetheme)] | [!Window.IsVisible(fullscreenvideo) + !Window.IsVisible(visualisation)]">Dark1</value>
        <value>PanelWhite70</value>
    </variable>
    <variable name="OSDPanelWhite100">
        <value condition="[Skin.HasSetting(osd.usetheme)] | [!Window.IsVisible(fullscreenvideo) + !Window.IsVisible(visualisation)]">Dark1</value>
        <value>PanelWhite100</value>
    </variable>

    <include name="OSDAudioControls">
 
        <control type="button" id="1">
            <description>Repeat</description>
            <onclick>XBMC.PlayerControl(Repeat)</onclick>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus>noop</texturefocus>
            <texturenofocus>noop</texturenofocus>
        </control>

        <control type="group" id="501">
            <left>-64</left>
            <width>48</width>
            <height>48</height>
            <control type="image" description="repeat-one-nf">
                <width>48</width>
                <height>48</height>
                <texture colordiffuse="PanelWhite70">osd/repeat-one.png</texture>
                <visible>Playlist.IsRepeatOne</visible>
                <visible>!Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-one-fo">
                <width>48</width>
                <height>48</height>
                <texture colordiffuse="$VAR[ColorHighlight]">osd/repeat-one.png</texture>
                <visible>Playlist.IsRepeatOne</visible>
                <visible>Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-all-nf">
                <width>48</width>
                <height>48</height>
                <texture colordiffuse="PanelWhite70">osd/repeat-all.png</texture>
                <visible>Playlist.IsRepeat</visible>
                <visible>!Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-all-fo">
                <width>48</width>
                <height>48</height>
                <texture colordiffuse="$VAR[ColorHighlight]">osd/repeat-all.png</texture>
                <visible>Playlist.IsRepeat</visible>
                <visible>Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-off-nf">
                <width>48</width>
                <height>48</height>
                <texture colordiffuse="PanelWhite70">osd/repeat-off.png</texture>
                <visible>!Playlist.IsRepeatOne + !Playlist.IsRepeat</visible>
                <visible>!Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-off-fo">
                <width>48</width>
                <height>48</height>
                <texture colordiffuse="$VAR[ColorHighlight]">osd/repeat-off.png</texture>
                <visible>!Playlist.IsRepeatOne + !Playlist.IsRepeat</visible>
                <visible>Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-check-fo">
                <top>42</top>
                <left>42</left>
                <width>16</width>
                <height>16</height>
                <texture colordiffuse="$VAR[ColorHighlight]">osd/minicheck.png</texture>
                <visible>Playlist.IsRepeat | Playlist.IsRepeatOne</visible>
                <visible>Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-check-fo">
                <top>42</top>
                <left>42</left>
                <width>16</width>
                <height>16</height>
                <texture colordiffuse="PanelWhite70">osd/minicheck.png</texture>
                <visible>Playlist.IsRepeat | Playlist.IsRepeatOne</visible>
                <visible>!Control.HasFocus(1)</visible>
            </control>
        </control>

        <control type="button" id="2">
            <description>Lyrics</description>
            <!-- <onclick condition="!Skin.HasSetting(osd.alwaysshowmusicosd)">Action(Close)</onclick> -->
            <onclick>RunScript(script.cu.lrclyrics)</onclick>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/lyrics.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/lyrics.png</texturenofocus>
        </control>
        
     <!--    <control type="button" id="3">
            <description>Playlist</description>
            <onclick>Close</onclick>
            <onclick>ActivateWindow(musicplaylist)</onclick>
            <width>48</width>
            <height>48</height>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/playlist.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/playlist.png</texturenofocus>
        </control> -->

        <control type="button" id="12">
            <description>Skip Back</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]" flipx="true">osd/next.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70" flipx="true">osd/next.png</texturenofocus>
            <onclick>PlayerControl(Previous)</onclick>
        </control>

        <control type="button" id="13">
            <description>Rewind</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]" flipx="true">osd/ff.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70" flipx="true">osd/ff.png</texturenofocus>
            <onclick>PlayerControl(Rewind)</onclick>
            <enable>Player.SeekEnabled</enable>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.SeekEnabled">Conditional</animation>
        </control>

        <control type="togglebutton" id="14">
            <description>Play/Pause</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <altlabel></altlabel>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/pause.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/pause.png</texturenofocus>
            <usealttexture>Player.Paused | Player.Forwarding | Player.Rewinding</usealttexture>
            <alttexturefocus colordiffuse="$VAR[ColorHighlight]">osd/play.png</alttexturefocus>
            <alttexturenofocus colordiffuse="PanelWhite70">osd/play.png</alttexturenofocus>
            <onclick>PlayerControl(Play)</onclick>
            <enable>Player.PauseEnabled</enable>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.PauseEnabled">Conditional</animation>
        </control>

        <control type="button" id="15">
            <description>Stop</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/stop.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/stop.png</texturenofocus>
            <onclick>PlayerControl(Stop)</onclick>
        </control>

        <control type="button" id="16">
            <description>Fast Forward</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/ff.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/ff.png</texturenofocus>
            <onclick>PlayerControl(Forward)</onclick>
            <enable>Player.SeekEnabled</enable>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.SeekEnabled">Conditional</animation>
        </control>

        <control type="button" id="17">
            <description>Next</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/next.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/next.png</texturenofocus>
            <onclick>PlayerControl(Next)</onclick>
        </control>

        <control type="button" id="500">
            <description>Vis</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/visualisation.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/visualisation.png</texturenofocus>
        </control>
<!-- 
        <control type="button" id="5">
            <description>Presets</description>
            <onclick>ActivateWindow(122)</onclick>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/preset.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/preset.png</texturenofocus>
        </control> -->

        <control type="button" id="6">
            <description>Random</description>
            <onclick>XBMC.PlayerControl(Random)</onclick>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/shuffle.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/shuffle.png</texturenofocus>
        </control>

        <control type="group" description="shuffle-check">
            <top>64</top>
            <right>380</right>
            <width>48</width>
            <height>48</height>
            <control type="image" description="shuffle-check-fo">
                <top>42</top>
                <left>42</left>
                <width>16</width>
                <height>16</height>
                <texture colordiffuse="$VAR[ColorHighlight]">osd/minicheck.png</texture>
                <visible>Playlist.IsRandom</visible>
                <visible>Control.HasFocus(6)</visible>
            </control>
            <control type="image" description="shuffle-check-fo">
                <top>42</top>
                <left>42</left>
                <width>16</width>
                <height>16</height>
                <texture colordiffuse="PanelWhite70">osd/minicheck.png</texture>
                <visible>Playlist.IsRandom</visible>
                <visible>!Control.HasFocus(6)</visible>
            </control>
        </control>
    </include>

    <include name="OSDAudioControlsFlip">
 
        <control type="button" id="1">
            <description>Repeat</description>
            <onclick>XBMC.PlayerControl(Repeat)</onclick>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus>noop</texturefocus>
            <texturenofocus>noop</texturenofocus>
        </control>

        <control type="group" id="501">
            <left>-64</left>
            <width>48</width>
            <height>48</height>
            <control type="image" description="repeat-one-nf">
                <width>48</width>
                <height>48</height>
                <texture colordiffuse="Dark1">osd/repeat-one.png</texture>
                <visible>Playlist.IsRepeatOne</visible>
                <visible>!Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-one-fo">
                <width>48</width>
                <height>48</height>
                <texture colordiffuse="$VAR[ColorHighlight]">osd/repeat-one.png</texture>
                <visible>Playlist.IsRepeatOne</visible>
                <visible>Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-all-nf">
                <width>48</width>
                <height>48</height>
                <texture colordiffuse="Dark1">osd/repeat-all.png</texture>
                <visible>Playlist.IsRepeat</visible>
                <visible>!Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-all-fo">
                <width>48</width>
                <height>48</height>
                <texture colordiffuse="$VAR[ColorHighlight]">osd/repeat-all.png</texture>
                <visible>Playlist.IsRepeat</visible>
                <visible>Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-off-nf">
                <width>48</width>
                <height>48</height>
                <texture colordiffuse="Dark1">osd/repeat-off.png</texture>
                <visible>!Playlist.IsRepeatOne + !Playlist.IsRepeat</visible>
                <visible>!Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-off-fo">
                <width>48</width>
                <height>48</height>
                <texture colordiffuse="$VAR[ColorHighlight]">osd/repeat-off.png</texture>
                <visible>!Playlist.IsRepeatOne + !Playlist.IsRepeat</visible>
                <visible>Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-check-fo">
                <top>42</top>
                <left>42</left>
                <width>16</width>
                <height>16</height>
                <texture colordiffuse="$VAR[ColorHighlight]">osd/minicheck.png</texture>
                <visible>Playlist.IsRepeat | Playlist.IsRepeatOne</visible>
                <visible>Control.HasFocus(1)</visible>
            </control>
            <control type="image" description="repeat-check-fo">
                <top>42</top>
                <left>42</left>
                <width>16</width>
                <height>16</height>
                <texture colordiffuse="Dark1">osd/minicheck.png</texture>
                <visible>Playlist.IsRepeat | Playlist.IsRepeatOne</visible>
                <visible>!Control.HasFocus(1)</visible>
            </control>
        </control>

        <control type="button" id="2">
            <description>Lyrics</description>
            <!-- <onclick condition="!Skin.HasSetting(osd.alwaysshowmusicosd)">Action(Close)</onclick> -->
            <onclick>RunScript(script.cu.lrclyrics)</onclick>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/lyrics.png</texturefocus>
            <texturenofocus colordiffuse="Dark1">osd/lyrics.png</texturenofocus>
        </control>
        
        <!-- <control type="button" id="3">
            <description>Playlist</description>
            <onclick>Close</onclick>
            <onclick>ActivateWindow(musicplaylist)</onclick>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/playlist.png</texturefocus>
            <texturenofocus colordiffuse="Dark1">osd/playlist.png</texturenofocus>
        </control> -->

        <control type="button" id="12">
            <description>Skip Back</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]" flipx="true">osd/next.png</texturefocus>
            <texturenofocus colordiffuse="Dark1" flipx="true">osd/next.png</texturenofocus>
            <onclick>PlayerControl(Previous)</onclick>
        </control>

        <control type="button" id="13">
            <description>Rewind</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]" flipx="true">osd/ff.png</texturefocus>
            <texturenofocus colordiffuse="Dark1" flipx="true">osd/ff.png</texturenofocus>
            <onclick>PlayerControl(Rewind)</onclick>
            <enable>Player.SeekEnabled</enable>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.SeekEnabled">Conditional</animation>
        </control>

        <control type="togglebutton" id="14">
            <description>Play/Pause</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <altlabel></altlabel>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/pause.png</texturefocus>
            <texturenofocus colordiffuse="Dark1">osd/pause.png</texturenofocus>
            <usealttexture>Player.Paused | Player.Forwarding | Player.Rewinding</usealttexture>
            <alttexturefocus colordiffuse="$VAR[ColorHighlight]">osd/play.png</alttexturefocus>
            <alttexturenofocus colordiffuse="Dark1">osd/play.png</alttexturenofocus>
            <onclick>PlayerControl(Play)</onclick>
            <enable>Player.PauseEnabled</enable>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.PauseEnabled">Conditional</animation>
        </control>

        <control type="button" id="15">
            <description>Stop</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/stop.png</texturefocus>
            <texturenofocus colordiffuse="Dark1">osd/stop.png</texturenofocus>
            <onclick>PlayerControl(Stop)</onclick>
        </control>

        <control type="button" id="16">
            <description>Fast Forward</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/ff.png</texturefocus>
            <texturenofocus colordiffuse="Dark1">osd/ff.png</texturenofocus>
            <onclick>PlayerControl(Forward)</onclick>
            <enable>Player.SeekEnabled</enable>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.SeekEnabled">Conditional</animation>
        </control>

        <control type="button" id="17">
            <description>Next</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/next.png</texturefocus>
            <texturenofocus colordiffuse="Dark1">osd/next.png</texturenofocus>
            <onclick>PlayerControl(Next)</onclick>
        </control>


   
        <control type="button" id="500">
            <description>Vis</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/visualisation.png</texturefocus>
            <texturenofocus colordiffuse="Dark1">osd/visualisation.png</texturenofocus>
        </control>

        <!-- <control type="button" id="5">
            <description>Presets</description>
            <onclick>ActivateWindow(122)</onclick>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/preset.png</texturefocus>
            <texturenofocus colordiffuse="Dark1">osd/preset.png</texturenofocus>
        </control> -->

        <control type="group" description="shuffle-check"  id="502">
            <top>64</top>
            <width>48</width>
            <height>48</height>

            <control type="button" id="6">
                <onleft>500</onleft>
                <description>Random</description>
                <onclick>XBMC.PlayerControl(Random)</onclick>
                <width>48</width>
                <height>48</height>
                <label></label>
                <font>noop</font>
                <include>DefOSDUpDown</include>
                <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/shuffle.png</texturefocus>
                <texturenofocus colordiffuse="Dark1">osd/shuffle.png</texturenofocus>
            </control>
            <control type="image" description="shuffle-check-fo">
                <top>42</top>
                <left>42</left>
                <width>16</width>
                <height>16</height>
                <texture colordiffuse="$VAR[ColorHighlight]">osd/minicheck.png</texture>
                <visible>Playlist.IsRandom</visible>
                <visible>Control.HasFocus(6)</visible>
            </control>
            <control type="image" description="shuffle-check-fo">
                <top>42</top>
                <left>42</left>
                <width>16</width>
                <height>16</height>
                <texture colordiffuse="Dark1">osd/minicheck.png</texture>
                <visible>Playlist.IsRandom</visible>
                <visible>!Control.HasFocus(6)</visible>
            </control>
        </control>

        <control type="image" description="shuffle-check-fo">
            <width>48</width>
            <height>48</height>
            <texture>noop</texture>
        </control>
    </include>

    <include name="OSDVideoControls">
        <control type="togglebutton" id="9003">
            <description>Record</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]" flipx="true">osd/record.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70" flipx="true">osd/record.png</texturenofocus>
            <usealttexture>Player.Recording</usealttexture>
            <alttexturefocus colordiffuse="$VAR[ColorHighlight]" flipx="true">osd/record-on.png</alttexturefocus>
            <alttexturenofocus colordiffuse="PanelWhite70" flipx="true">osd/record-on.png</alttexturenofocus>
            <onclick>PlayerControl(Record)</onclick>
            <enable>Player.CanRecord</enable>
            <visible>VideoPlayer.Content(LiveTV)</visible>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.CanRecord">Conditional</animation>
        </control>
        
        <control type="button" id="12">
            <description>Skip Back</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]" flipx="true">osd/next.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70" flipx="true">osd/next.png</texturenofocus>
            <onclick>PlayerControl(Previous)</onclick>
        </control>

        <control type="button" id="13">
            <description>Rewind</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]" flipx="true">osd/ff.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70" flipx="true">osd/ff.png</texturenofocus>
            <onclick>PlayerControl(Rewind)</onclick>
            <enable>Player.SeekEnabled</enable>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.SeekEnabled">Conditional</animation>
        </control>

        <control type="togglebutton" id="14">
            <description>Play/Pause</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <altlabel></altlabel>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/pause.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/pause.png</texturenofocus>
            <usealttexture>Player.Paused | Player.Forwarding | Player.Rewinding</usealttexture>
            <alttexturefocus colordiffuse="$VAR[ColorHighlight]">osd/play.png</alttexturefocus>
            <alttexturenofocus colordiffuse="PanelWhite70">osd/play.png</alttexturenofocus>
            <onclick>PlayerControl(Play)</onclick>
            <enable>Player.PauseEnabled</enable>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.PauseEnabled">Conditional</animation>
        </control>

        <control type="button" id="15">
            <description>Stop</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/stop.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/stop.png</texturenofocus>
            <onclick>PlayerControl(Stop)</onclick>
        </control>

        <control type="button" id="16">
            <description>Fast Forward</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/ff.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/ff.png</texturenofocus>
            <onclick>PlayerControl(Forward)</onclick>
            <enable>Player.SeekEnabled</enable>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.SeekEnabled">Conditional</animation>
        </control>

        <control type="button" id="17">
            <description>Next</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/next.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/next.png</texturenofocus>
            <onclick>PlayerControl(Next)</onclick>
        </control>
        
        <control type="button" id="9002">
            <width>48</width>
            <height>48</height>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/eject.png</texturefocus>
            <texturenofocus colordiffuse="PanelWhite70">osd/eject.png</texturenofocus>
            <onclick>EjectTray()</onclick>
            <visible>System.HasMediadvd</visible>
        </control>
    </include>
    <include name="OSDVideoControlsFlip">
        <control type="togglebutton" id="9003">
            <description>Record</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]" flipx="true">osd/record.png</texturefocus>
            <texturenofocus colordiffuse="Dark1" flipx="true">osd/record.png</texturenofocus>
            <usealttexture>Player.Recording</usealttexture>
            <alttexturefocus colordiffuse="$VAR[ColorHighlight]" flipx="true">osd/record-on.png</alttexturefocus>
            <alttexturenofocus colordiffuse="Dark1" flipx="true">osd/record-on.png</alttexturenofocus>
            <onclick>PlayerControl(Record)</onclick>
            <enable>Player.CanRecord</enable>
            <visible>VideoPlayer.Content(LiveTV)</visible>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.CanRecord">Conditional</animation>
        </control>
        
        <control type="button" id="12">
            <description>Skip Back</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]" flipx="true">osd/next.png</texturefocus>
            <texturenofocus colordiffuse="Dark1" flipx="true">osd/next.png</texturenofocus>
            <onclick>PlayerControl(Previous)</onclick>
        </control>

        <control type="button" id="13">
            <description>Rewind</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]" flipx="true">osd/ff.png</texturefocus>
            <texturenofocus colordiffuse="Dark1" flipx="true">osd/ff.png</texturenofocus>
            <onclick>PlayerControl(Rewind)</onclick>
            <enable>Player.SeekEnabled</enable>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.SeekEnabled">Conditional</animation>
        </control>

        <control type="togglebutton" id="14">
            <description>Play/Pause</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <altlabel></altlabel>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/pause.png</texturefocus>
            <texturenofocus colordiffuse="Dark1">osd/pause.png</texturenofocus>
            <usealttexture>Player.Paused | Player.Forwarding | Player.Rewinding</usealttexture>
            <alttexturefocus colordiffuse="$VAR[ColorHighlight]">osd/play.png</alttexturefocus>
            <alttexturenofocus colordiffuse="Dark1">osd/play.png</alttexturenofocus>
            <onclick>PlayerControl(Play)</onclick>
            <enable>Player.PauseEnabled</enable>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.PauseEnabled">Conditional</animation>
        </control>

        <control type="button" id="15">
            <description>Stop</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/stop.png</texturefocus>
            <texturenofocus colordiffuse="Dark1">osd/stop.png</texturenofocus>
            <onclick>PlayerControl(Stop)</onclick>
        </control>

        <control type="button" id="16">
            <description>Fast Forward</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/ff.png</texturefocus>
            <texturenofocus colordiffuse="Dark1">osd/ff.png</texturenofocus>
            <onclick>PlayerControl(Forward)</onclick>
            <enable>Player.SeekEnabled</enable>
            <animation effect="fade" start="100" end="33" time="100" condition="!Player.SeekEnabled">Conditional</animation>
        </control>

        <control type="button" id="17">
            <description>Next</description>
            <width>48</width>
            <height>48</height>
            <label></label>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/next.png</texturefocus>
            <texturenofocus colordiffuse="Dark1">osd/next.png</texturenofocus>
            <onclick>PlayerControl(Next)</onclick>
        </control>
        
        <control type="button" id="9002">
            <width>48</width>
            <height>48</height>
            <font>noop</font>
            <include>DefOSDUpDown</include>
            <texturefocus colordiffuse="$VAR[ColorHighlight]">osd/eject.png</texturefocus>
            <texturenofocus colordiffuse="Dark1">osd/eject.png</texturenofocus>
            <onclick>EjectTray()</onclick>
            <visible>System.HasMediadvd</visible>
        </control>
    </include>
    <include name="Furniture_OSDClock">
        <control type="group">
            <visible>Player.Seeking | Player.DisplayAfterSeek | Player.Paused | Player.Forwarding | Player.Rewinding | Player.ShowInfo | Window.IsVisible(fullscreeninfo) | Window.IsVisible(videoosd)</visible>
            <visible>!Window.IsVisible(DialogKaiToast.xml)</visible>
            <visible>!Window.IsVisible(DialogExtendedInfo.xml)</visible>
            <visible>!Window.IsVisible(DialogVolumeBar.xml)</visible>
            <right>70</right>
            <posy>70</posy>
            <width>550</width>
            <height>100</height>
            <include>Animation.FadeIn.Slide</include>
            <include>Animation.FadeOut</include>
            
            <control type="image">
                <description>background image</description>
                <posx>0</posx>
                <posy>0</posy>
                <width>100%</width>
                <height>100%</height>
                <colordiffuse>$VAR[OSDPanel]</colordiffuse>
                <animation effect="fade" start="100" end="90" condition="Skin.HasSetting(osd.usetheme)">Conditional</animation>
                <texture border="16">common/rounded-shadow8.png</texture>
                <visible>Player.HasVideo</visible>
            </control>

            <control type="image">
                <description>background image</description>
                <right>0</right>
                <posy>0</posy>
                <width>50%</width>
                <height>100%</height>
                <colordiffuse>$VAR[OSDPanel]</colordiffuse>
                <animation effect="fade" start="100" end="90" condition="Skin.HasSetting(osd.usetheme)">Conditional</animation>
                <texture border="16">common/rounded-shadow8.png</texture>
                <visible>!Player.HasVideo</visible>
            </control>

            <control type="group">
                <animation effect="slide" start="0" end="240" condition="!Player.HasVideo">Conditional</animation>
                <control type="image">
                    <left>30</left>
                    <centertop>50%</centertop>
                    <width>48</width>
                    <height>48</height>
                    <aspectratio aligny="center">keep</aspectratio>
                    <colordiffuse>$VAR[OSDPanelWhite70]</colordiffuse>
                    <texture>kaitoast/clock.png</texture>
                </control>
                <control type="label">
                    <right>55%</right>
                    <left>80</left>
                    <height>100%</height>
                    <align>center</align>
                    <aligny>center</aligny>
                    <font>Small</font>
                    <textcolor>$VAR[OSDPanelWhite70]</textcolor>
                    <label>$INFO[System.Time]</label>
                </control>
                <control type="image">
                    <centerleft>50%</centerleft>
                    <centertop>50%</centertop>
                    <width>48</width>
                    <height>48</height>
                    <aspectratio aligny="center">keep</aspectratio>
                    <colordiffuse>$VAR[OSDPanelWhite70]</colordiffuse>
                    <texture>kaitoast/arrow.png</texture>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="image">
                    <right>30</right>
                    <centertop>50%</centertop>
                    <width>48</width>
                    <height>48</height>
                    <aspectratio aligny="center">keep</aspectratio>
                    <colordiffuse>$VAR[OSDPanelWhite70]</colordiffuse>
                    <texture>kaitoast/finishtime.png</texture>
                    <visible>Player.HasVideo</visible>
                </control>
                <control type="label">
                    <right>80</right>
                    <left>55%</left>
                    <height>100%</height>
                    <align>center</align>
                    <aligny>center</aligny>
                    <font>Small</font>
                    <textcolor>$VAR[OSDPanelWhite70]</textcolor>
                    <label>$INFO[Player.FinishTime]</label>
                    <visible>Player.HasVideo</visible>
                </control>

            </control>
        </control>
        
    </include>
    
</includes>
