Skip to content

Commit

Permalink
globalised custom background
Browse files Browse the repository at this point in the history
  • Loading branch information
realcopacetic committed Nov 13, 2023
1 parent 9635097 commit 441c91c
Show file tree
Hide file tree
Showing 11 changed files with 238 additions and 289 deletions.
9 changes: 5 additions & 4 deletions 16x9/Colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,11 @@
<value>$VAR[Disabled_Color]</value>
</variable>

<variable name="skinsettings_Background_Slideshow_Button_Textcolor">
<value condition="Control.HasFocus(16010) | Control.HasFocus(16011)">$VAR[Light_Color]</value>
<value>$VAR[Unfocused_Color]</value>
</variable>

<variable name="skinsettings_Background_Low_Threshold_Button_Textcolor">
<value condition="Control.HasFocus(10160) | Control.HasFocus(10161) | Control.HasFocus(10162)">$VAR[Light_Color]</value>
<value>$VAR[Unfocused_Color]</value>
Expand All @@ -406,10 +411,6 @@
<value condition="Control.HasFocus(10240) | Control.HasFocus(10241)">$VAR[Light_Color]</value>
<value>$VAR[Unfocused_Color]</value>
</variable>
<variable name="skinsettings_Background_Slideshow_Button_Textcolor">
<value condition="Control.HasFocus(10180) | Control.HasFocus(10181)">$VAR[Light_Color]</value>
<value>$VAR[Unfocused_Color]</value>
</variable>
<variable name="skinsettings_Background_Interval_Button_Textcolor">
<value condition="Control.HasFocus(10190) | Control.HasFocus(10191)">$VAR[Light_Color]</value>
<value>$VAR[Unfocused_Color]</value>
Expand Down
124 changes: 55 additions & 69 deletions 16x9/Components.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,39 +80,6 @@
</definition>
</include>

<include name="Background_List">
<param name="time" default="10000" />
<definition>
<control type="list" id="3300">
<include content="Hidden_Control" />
<include content="Background_$PARAM[content_source]_Content" />
<autoscroll time="$PARAM[time]">true</autoscroll>
<itemlayout />
<focusedlayout />
</control>
</definition>
</include>

<include name="Background_List_Home">
<include content="Background_List">
<param name="content_source" value="Home" />
<param name="time" value="$PARAM[time]" />
</include>
</include>

<!-- <include name="Background_Backing">
<param name="visible" default="Skin.String(Theme,Light)" />
<param name="animation_delay" default="1800" />
<param name="color_diffuse" default="$VAR[Dark_Color]" />
<definition>
<control type="image">
<visible>$PARAM[visible]</visible>
<animation effect="fade" start="0" end="100" time="360" delay="$PARAM[animation_delay]" tween="sine" easing="inout" reversible="true">Visible</animation>
<texture colordiffuse="$PARAM[color_diffuse]">views/white_100.png</texture>
</control>
</definition>
</include> -->

<include name="Background_Multiart">
<param name="time" default="10000" />
<param name="fadein_animation_condition" default="true" />
Expand All @@ -136,6 +103,54 @@
</definition>
</include>

<include name="Background_Global">
<param name="visible" default="true" />
<param name="texture_path" default="$VAR[Background_Global_Texture]" />
<param name="fadein_animation_condition" default="true" />
<param name="fadeout_animation_condition" default="true" />
<definition>
<control type="group">
<visible>!VideoPlayer.IsFullscreen + $PARAM[visible]</visible>
<include content="VisibleHidden_Background_Fade_Delayed_Animation" />
<control type="videowindow">
<include content="Hidden_Control" />
</control>
<include content="Background_Multiart">
<param name="colordiffuse" value="$VAR[Home_Artwork_Diffuse]" />
<param name="texture_path" value="$PARAM[texture_path]" />
<param name="fadetime" value="0" />
<param name="fadein_animation_condition" value="$PARAM[fadein_animation_condition]" />
<param name="fadeout_animation_condition" value="$PARAM[fadeout_animation_condition]" />
</include>
<include content="Background_Multiart">
<param name="colordiffuse" value="$VAR[Home_Artwork_Diffuse]" />
<param name="texture_path" value="$PARAM[texture_path]" />
<param name="fadetime" value="360" />
<param name="fadein_animation_condition" value="$PARAM[fadein_animation_condition]" />
<param name="fadeout_animation_condition" value="$PARAM[fadeout_animation_condition]" />
</include>
<nested />
</control>
</definition>
</include>




<include name="Background_List">
<param name="content_source" default="Home" />
<param name="time" default="10000" />
<definition>
<control type="list" id="3300">
<include content="Hidden_Control" />
<include content="Background_$PARAM[content_source]_Content" />
<autoscroll time="$PARAM[time]">true</autoscroll>
<itemlayout />
<focusedlayout />
</control>
</definition>
</include>

<include name="Background_Multiart_Home">
<include content="Background_Multiart">
<param name="fadein_animation_condition" value="![Window.Previous(addonbrowser) + !String.IsEqual(Window(home).Property(Container_Addons_NonRepo),true)] + !$EXP[Settings_Previous]" />
Expand All @@ -148,22 +163,22 @@
</include>

<include name="Background_Home">
<include content="Background_List_Home" condition="Skin.String(Background_Interval,5)">
<include content="Background_List" condition="Skin.String(Background_Interval,5)">
<param name="time" value="5000" />
</include>
<include content="Background_List_Home" condition="Skin.String(Background_Interval,10) | !Skin.String(Background_Interval)">
<include content="Background_List" condition="Skin.String(Background_Interval,10) | !Skin.String(Background_Interval)">
<param name="time" value="10000" />
</include>
<include content="Background_List_Home" condition="Skin.String(Background_Interval,15)">
<include content="Background_List" condition="Skin.String(Background_Interval,15)">
<param name="time" value="15000" />
</include>
<include content="Background_List_Home" condition="Skin.String(Background_Interval,20)">
<include content="Background_List" condition="Skin.String(Background_Interval,20)">
<param name="time" value="20000" />
</include>
<include content="Background_List_Home" condition="Skin.String(Background_Interval,25)">
<include content="Background_List" condition="Skin.String(Background_Interval,25)">
<param name="time" value="25000" />
</include>
<include content="Background_List_Home" condition="Skin.String(Background_Interval,30)">
<include content="Background_List" condition="Skin.String(Background_Interval,30)">
<param name="time" value="30000" />
</include>
<control type="image">
Expand All @@ -190,36 +205,7 @@
</include>
</include>

<include name="Background_Global">
<param name="visible" default="true" />
<param name="texture_path" default="$VAR[Background_Global_Texture]" />
<param name="fadein_animation_condition" default="true" />
<param name="fadeout_animation_condition" default="true" />
<definition>
<control type="group">
<visible>!VideoPlayer.IsFullscreen + $PARAM[visible]</visible>
<include content="VisibleHidden_Background_Fade_Delayed_Animation" />
<control type="videowindow">
<include content="Hidden_Control" />
</control>
<include content="Background_Multiart">
<param name="colordiffuse" value="$VAR[Home_Artwork_Diffuse]" />
<param name="texture_path" value="$PARAM[texture_path]" />
<param name="fadetime" value="0" />
<param name="fadein_animation_condition" value="$PARAM[fadein_animation_condition]" />
<param name="fadeout_animation_condition" value="$PARAM[fadeout_animation_condition]" />
</include>
<include content="Background_Multiart">
<param name="colordiffuse" value="$VAR[Home_Artwork_Diffuse]" />
<param name="texture_path" value="$PARAM[texture_path]" />
<param name="fadetime" value="360" />
<param name="fadein_animation_condition" value="$PARAM[fadein_animation_condition]" />
<param name="fadeout_animation_condition" value="$PARAM[fadeout_animation_condition]" />
</include>
<nested />
</control>
</definition>
</include>


<include name="Background_Media">
<param name="visible" default="[$EXP[Containers_Background] | Container.Content()] + !$EXP[ListView_Display_IsThumbnails] + !$EXP[GridView_IsVisible]" />
Expand Down
Loading

0 comments on commit 441c91c

Please sign in to comment.