Permalink
Browse files

Clean up the way PlayingBackgroundMedia is read

  • Loading branch information...
robwebset authored and popcornmix committed Jun 22, 2015
1 parent 72a1bcd commit a61b378bebd6cb7a22b5f4491b14ef0ff8897a24
@@ -31,7 +31,7 @@
<control type="group">
<left>0</left>
<top>60</top>
<visible>Player.HasAudio + !Skin.HasSetting(homepageMusicinfo) + !SubString(Window(videolibrary).Property(PlayingBackgroundMedia),True)</visible>
<visible>Player.HasAudio + !Skin.HasSetting(homepageMusicinfo) + IsEmpty(Window(videolibrary).Property(PlayingBackgroundMedia))</visible>
<include>VisibleFadeEffect</include>
<include>Window_OpenClose_Animation</include>
<control type="image">
@@ -233,7 +233,7 @@
<control type="group">
<left>0</left>
<top>50</top>
<visible>Player.HasVideo + !Skin.HasSetting(homepageVideoinfo) + !SubString(Window(videolibrary).Property(PlayingBackgroundMedia),True)</visible>
<visible>Player.HasVideo + !Skin.HasSetting(homepageVideoinfo) + IsEmpty(Window(videolibrary).Property(PlayingBackgroundMedia))</visible>
<include>VisibleFadeEffect</include>
<include>Window_OpenClose_Animation</include>
<control type="group">
@@ -466,7 +466,7 @@
<effect type="zoom" start="100" end="80" center="640,360" easing="in" tween="back" time="225" />
<effect type="fade" start="100" end="0" time="225" />
</animation>
<visible>!SubString(Window(videolibrary).Property(PlayingBackgroundMedia),True)</visible>
<visible>IsEmpty(Window(videolibrary).Property(PlayingBackgroundMedia))</visible>
<control type="image">
<description>Background End image</description>
<left>0</left>
@@ -51,7 +51,7 @@
<width>1280</width>
<height>720</height>
<visible>Player.HasAudio + !Skin.HasSetting(ShowBackgroundVis)</visible>
<visible>!SubString(Window(videolibrary).Property(PlayingBackgroundMedia),True)</visible>
<visible>IsEmpty(Window(videolibrary).Property(PlayingBackgroundMedia))</visible>
</control>
<control type="videowindow">
<left>0</left>
@@ -66,7 +66,7 @@
<width>1280</width>
<height>120</height>
<texture flipy="true" border="1">HomeNowPlayingBack.png</texture>
<visible>[Player.HasVideo + !Skin.HasSetting(ShowBackgroundVideo)] | [Player.HasAudio + ![Skin.HasSetting(ShowBackgroundVis) | SubString(Window(videolibrary).Property(PlayingBackgroundMedia),True)]] | [!Skin.HasSetting(HideBackGroundFanart) + !IsEmpty(ListItem.Property(Fanart_Image))]</visible>
<visible>[Player.HasVideo + !Skin.HasSetting(ShowBackgroundVideo)] | [Player.HasAudio + ![Skin.HasSetting(ShowBackgroundVis) | !IsEmpty(Window(videolibrary).Property(PlayingBackgroundMedia))]] | [!Skin.HasSetting(HideBackGroundFanart) + !IsEmpty(ListItem.Property(Fanart_Image))]</visible>
<include>VisibleFadeEffect</include>
</control>
</include>
@@ -316,7 +316,7 @@
</include>
<include name="CommonNowPlaying">
<control type="group">
<visible>Player.HasMedia + !SubString(Window(videolibrary).Property(PlayingBackgroundMedia),True)</visible>
<visible>Player.HasMedia + IsEmpty(Window(videolibrary).Property(PlayingBackgroundMedia))</visible>
<include>VisibleFadeEffect</include>
<animation effect="fade" time="200" condition="Window.Previous(Home)">WindowOpen</animation>
<animation effect="fade" time="200" condition="Window.Next(Home)">WindowClose</animation>

0 comments on commit a61b378

Please sign in to comment.