<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol></defaultcontrol>
	<onload condition="System.HasAddon(script.artistslideshow)">RunScript(script.artistslideshow, daemon=True)</onload>
	<onload condition="String.IsEmpty(Skin.String(FullScreenMusicStyle))">Skin.SetString(FullScreenMusicStyle,1)</onload>
	<onload condition="Window.IsActive(PlayerControls)">Dialog.Close(PlayerControls)</onload>
	<onunload condition="Window.IsActive(script-cu-lrclyrics-main.xml)">Dialog.Close(script-cu-lrclyrics-main.xml)</onunload>
	<controls>
		<include>BackgroundItems</include>

		<!-- ====================== -->
		<!-- == Backgrounds Code == -->
		<!-- ====================== -->

		<!-- Artist Info -->
		<control type="textbox">
			<description>textarea</description>
			<left>100</left>
			<top>0</top>
			<width>1080</width>
			<height>720</height>
			<align>center</align>
			<font>FontSize_60</font>
			<autoscroll time="2800" delay="0" repeat="7500">true</autoscroll>
			<label>[CR] [CR] [CR] [CR] [CR] [CR] [CR] [CR] [CR]$INFO[MusicPlayer.Property(Artist_Description)][CR] [CR] [CR]$INFO[MusicPlayer.Property(Album_Description)][CR] [CR] [CR] [CR] [CR] [CR] [CR] [CR] [CR] </label>
			<visible>Skin.HasSetting(MusicInfoOSD)</visible>
			<visible>!Window.IsVisible(MusicOSD) + !Window.IsVisible(script-cu-lrclyrics-main.xml)</visible>
			<animation effect="fade" start="100" end="0" time="400">Hidden</animation>
			<animation effect="fade" start="100" end="0" time="1500">WindowClose</animation>
		</control>


		<!-- ===================== -->
		<!-- == Music Info Code == -->
		<!-- ===================== -->

		<!-- Music Info (Default) -->
		<control type="group">
			<left>45</left>
			<include>OSDAnimation</include>
			<visible>[Player.Paused | Player.Forwarding | Player.Rewinding | Player.ShowInfo | Window.IsActive(MusicOSD)]</visible>
			<visible>!String.IsEqual(Skin.String(FullScreenMusicStyle),2) + !Window.IsActive(script-cu-lrclyrics-main.xml) + !Window.IsActive(AddonSettings) + !Window.IsActive(BusyDialog) + !Window.IsActive(SelectDialog) + !Window.IsActive(VisualisationPresetList) + !Window.IsActive(1112) + !Window.IsActive(ShutdownMenu) + !Window.IsActive(favourites)</visible>
			<control type="image">
				<top>120</top>
				<left>-45</left>
				<include>FullscreenDimensions</include>
				<texture background="true">windows/home/menu_overlay.png</texture>
			</control>

			<!-- Cover -->
			<control type="group">
				<left>0</left>
				<top>475</top>
				<include>PlayerSquare</include>
			</control>

			<!-- Progress -->
			<control type="group" id="1">
				<left>-45</left>
				<top>537</top>
				<include>OSDProgressBar</include>
			</control>

			<!-- Info -->
			<control type="group">
				<left>180</left>
				<top>500</top>
				<include content="OSDPlayerTitleLabel">
					<param name="height" value="30"/>
					<param name="width" value="740"/>
					<param name="label" value="$VAR[PlayerTitleLabel]"/>
				</include>
				<include content="OSDPlayerSubLabel">
					<param name="width" value="550"/>
					<param name="label" value="$VAR[PlayerSubLabel]"/>
				</include>
				<include content="OSDPlayerTime">
					<param name="top" value="85"/>
				</include>
				<include>OSDPlayerRightFadeSubLabels</include>
				<control type="image">
					<description>Rating image</description>
					<left>885</left>
					<top>8</top>
					<width>130</width>
					<height>25</height>
					<aspectratio>keep</aspectratio>
					<texture>$VAR[PlayerStarRating]</texture>
				</control>
			</control>
		</control>

		<!-- Music Info (Simple) -->
		<control type="group" id="1">
			<visible>String.IsEqual(Skin.String(FullScreenMusicStyle),2)</visible>
			<visible>Player.ShowInfo + ![Window.IsActive(script-cu-lrclyrics-main.xml) | Window.IsActive(AddonSettings) | Window.IsActive(BusyDialog) | Window.IsActive(SelectDialog) | Window.IsActive(VisualisationPresetList) | Window.IsActive(1112) | Window.IsActive(ShutdownMenu) | Window.IsActive(favourites) | String.IsEmpty(Player.TimeRemaining)]</visible>
			<include>OSDAnimation</include>
			<control type="image" id="1">
				<left>0</left>
				<top>305</top>
				<include>FullscreenDimensions</include>
				<texture background="true">windows/home/menu_overlay.png</texture>
			</control>
			<control type="grouplist" id="1">
				<left>37</left>
				<top>636</top>
				<width>1000</width>
				<height>72</height>
				<align>left</align>
				<itemgap>5</itemgap>
				<orientation>horizontal</orientation>
				<include>KaiToastSlideAnimations</include>
				<control type="label" id="1">
					<height>60</height>
					<width min="10" max="1000">auto</width>
					<label>$INFO[Player.Time]</label>
					<align>left</align>
					<aligny>center</aligny>
					<font>FontSize_50</font>
				</control>
				<control type="group" id="1">
					<control type="label" id="1">
						<left>0</left>
						<top>8</top>
						<width>1000</width>
						<height>25</height>
						<label>$VAR[PlayerTitleLabel]</label>
						<align>left</align>
						<aligny>center</aligny>
						<font>NotificationsFont</font>
					</control>
					<control type="label" id="1">
						<left>0</left>
						<top>29</top>
						<width>1000</width>
						<height>25</height>
						<label>$VAR[PlayerSubLabel]</label>
						<align>left</align>
						<aligny>center</aligny>
						<font>NotificationsFont</font>
						<textcolor>viewsinfo</textcolor>
					</control>
				</control>
			</control>
			<control type="progress" id="5">
				<info>Player.Progress</info>
				<include>HiddenItem</include>
				<visible>false</visible>
			</control>
		</control>

		<!-- Music Seekbar (Simple) -->
		<control type="group" id="1">
			<left>45</left>
			<top>615</top>
			<visible>String.IsEqual(Skin.String(FullScreenMusicStyle),2)</visible>
			<visible>Window.IsActive(Visualisation) + [Player.Paused | Player.Forwarding | Player.Rewinding | Player.Seeking | Player.HasPerformedSeek(1) | Player.Caching] + ![Player.ShowInfo | Window.IsActive(script-cu-lrclyrics-main.xml) | Window.IsActive(AddonSettings) | Window.IsActive(BusyDialog) + !Window.IsActive(SelectDialog) | Window.IsActive(VisualisationPresetList) + !Window.IsActive(1112) | Window.IsActive(ShutdownMenu) | Window.IsActive(favourites) | String.IsEmpty(Player.TimeRemaining)]</visible>
			<include>OSDAnimation</include>
			<include>KaiToastSlideAnimations</include>
			<include content="SeekBarSimple">
				<param name="progressbar_id" value="4"/>
			</include>
			<control type="progress" id="4">
				<info>Player.Progress</info>
				<include>HiddenItem</include>
				<visible>false</visible>
			</control>
		</control>

		<!-- ===================== -->
		<!-- == Weather & Clock == -->
		<!-- ===================== -->
		<control type="group">
			<left>25</left>
			<top>45</top>
			<include>OpenCloseSlideAnimation</include>
			<animation type="Visible">
				<include>CommonOpenEffect</include>
			</animation>
			<animation type="Hidden">
				<include>CommonCloseEffect</include>
			</animation>
			<include>WeatherAndClock</include>
			<visible>[Window.IsActive(MusicOSD) + !String.IsEqual(Skin.String(FullScreenMusicStyle),2)]</visible>
		</control>

	</controls>
</window>