Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static background gets overridden with fanart #107

Closed
mvn23 opened this issue Nov 23, 2021 · 3 comments
Closed

Static background gets overridden with fanart #107

mvn23 opened this issue Nov 23, 2021 · 3 comments

Comments

@mvn23
Copy link

mvn23 commented Nov 23, 2021

After upgrading to the Matrix version of this skin, I noticed that my background changes from time to time.

I'm trying to create a minimalist setup with only the home menu and sub menus, without any further widgets or other distracting elements. To achieve this, I have applied the following settings:

  • Home > Show widget information: off
  • Home > Show widget posters: Never
  • Home > Show widget discart: off
  • In Home > Customise home menu, all items have Widget set to None and Background set to the same static image.
  • Background > Show fanart: off
  • Background > Background overlay image: set to static image (same as for Customise home menu items)
  • Background > Fanart fallback image: None

Despite this, every once in a while my background gets temporarily overridden with a fanart image. When I press up on my remote, I see a Spotlight widget showing the same movie from which the fanart seems to originate.

As a workaround, I have removed the entire <!-- Home Widget --> section from here:

<!-- Home Widget -->
<include name="Home_Widget_Control">
<include>skinshortcuts-template-widget</include>
<include>skinshortcuts-template-submenu-widget</include>
<control type="button" id="9101">
<width>100%</width>
<top>top</top>
<height>height</height>
<onfocus>SetProperty(FO9001,1,home)</onfocus>
<onunfocus>ClearProperty(FO9001,home)</onunfocus>
<onup>ClearProperty(FO9001,home)</onup>
<ondown>ClearProperty(FO9001,home)</ondown>
<onback>ClearProperty(FO9001,home)</onback>
<onback>9000</onback>
<ondown>9000</ondown>
<onup>9000</onup>
<onclick>PlayMedia($INFO[Container(9001).ListItem.FileNameAndPath])</onclick>
<visible>Integer.IsGreater(Container(9001).NumItems,0)</visible>
</control>
</include>
<include name="Home_Widget_DiscArt">
<control type="image">
<left>620</left>
<top>bigpad</top>
<width>300</width>
<height>300</height>
<aspectratio>keep</aspectratio>
<animation type="VisibleChange">
<effect type="slide" start="-300" end="0" time="300" />
<effect type="rotate" start="120" end="0" time="300" center="auto"/>
</animation>
<fadetime>300</fadetime>
<visible>!String.IsEmpty(Container(9001).ListItem.Art(discart))</visible>
<visible>String.IsEmpty(Container(9000).ListItem.Property(PosterWidget))</visible>
<texture background="true">$INFO[Container(9001).ListItem.Art(discart)]</texture>
</control>
</include>
<include name="Home_Widget_Left">
<include>Animation_Left</include>
<visible>Integer.IsGreater(Container(9001).NumItems,0)</visible>
<include condition="Skin.HasSetting(home.showdiscart) + !String.IsEqual(Skin.String(home.widgetposters),$LOCALIZE[31154]) + !String.IsEqual(Skin.String(home.widgetposters),$LOCALIZE[31153])">Home_Widget_DiscArt</include>
<control type="image">
<posx>-124</posx>
<top>-24</top>
<width>948</width>
<height>388</height>
<visible>!Skin.HasSetting(global.hideobjectshadows)</visible>
<texture border="150">common/half-tile-shadow-24.png</texture>
</control>
<control type="image">
<posx>-100</posx>
<width>900</width>
<height>340</height>
<animation effect="fade" start="100" end="90" time="200" condition="Skin.HasSetting(home.transparent) + [!String.IsEqual(Skin.String(home.widgetposters),$LOCALIZE[31154]) + !String.IsEqual(Skin.String(home.widgetposters),$LOCALIZE[31153]) + ![!String.IsEmpty(Container(9000).ListItem.Property(PosterWidget)) + String.IsEqual(Skin.String(home.widgetposters),$LOCALIZE[31166])] | [String.IsEqual(Skin.String(home.widgetposters),$LOCALIZE[31154]) + ![Control.HasFocus(9001) | Control.HasFocus(9101)]]]">Conditional</animation>
<texture border="150" colordiffuse="HomeWidgetBG">common/half-tile.png</texture>
</control>
<control type="grouplist">
<posx>64</posx>
<posy>20</posy>
<width>650</width>
<orientation>vertical</orientation>
<visible>[!String.IsEmpty(Container(9000).ListItem.Property(widget))] | [String.IsEmpty(Container(9000).ListItem.Property(widget))]</visible>
<control type="label">
<label>$VAR[Label_HomeWidget]</label>
<aligny>top</aligny>
<height>35</height>
<animation effect="fade" start="100" end="70" condition="true">Conditional</animation>
<textcolor>HomeBarFG</textcolor>
</control>
<control type="label">
<label>$VAR[Label_HomeWidget_Label]</label>
<aligny>top</aligny>
<font>Font-WidgetInfoTitle</font>
<height>70</height>
<textcolor>$VAR[HighlightColor2]</textcolor>
</control>
<control type="textbox">
<label>$VAR[Label_HomeWidget_Plot]</label>
<aligny>top</aligny>
<align>left</align>
<height>120</height>
<animation effect="fade" start="100" end="70" condition="true">Conditional</animation>
<textcolor>HomeBarFG</textcolor>
<font>Font-ListInfo</font>
</control>
<control type="label">
<label>$VAR[Label_HomeWidget_Info]</label>
<aligny>center</aligny>
<animation effect="fade" start="100" end="70" condition="true">Conditional</animation>
<font>Font-ListInfo-Small</font>
<height>65</height>
<textcolor>HomeBarFG</textcolor>
</control>
</control>
</include>
<include name="Home_Widget_Right">
<include>Animation_Right</include>
<visible>Integer.IsGreater(Container(9001).NumItems,0)</visible>
<control type="image">
<posx>726</posx>
<top>-24</top>
<width>2048</width>
<height>388</height>
<visible>!Skin.HasSetting(global.hideobjectshadows)</visible>
<texture border="150">common/half-tile-shadow-24.png</texture>
</control>
<control type="image">
<posx>305</posx>
<width>2000</width>
<height>340</height>
<texture colordiffuse="HomeWidgetBG" border="150">common/half-tile.png</texture>
<animation effect="fade" start="100" end="80" condition="true">Conditional</animation>
</control>
<control type="grouplist">
<visible>Integer.IsGreater(Container(9001).NumItems,0)</visible>
<visible>![String.IsEqual(Container(9000).ListItem.Property(widget),Weather) | [String.IsEmpty(Container(9000).ListItem.Property(widget)) + [String.IsEqual(Skin.String(home.fallbackwidget),Weather) | String.IsEqual(Skin.String(home.fallbackwidget.node),Weather)]]] | !System.HasAddon(resource.images.weatherfanart.multi)</visible>
<include>Animation_FadeIn</include>
<include>Animation_FadeOut</include>
<animation effect="slide" start="0" end="-220" condition="!Container(9001).OnNext" reversible="false" time="200">Conditional</animation>
<animation effect="slide" start="0" end="220" condition="!Container(9001).OnPrevious" reversible="false" time="200">Conditional</animation>
<posx>455</posx>
<width>2000</width>
<top>pad</top>
<height>320</height>
<orientation>horizontal</orientation>
<itemgap>0</itemgap>
<include content="Object_HomeWidgetPoster">
<param name="id" value="-2" />
<param name="focuseditem" value="false" />
</include>
<include content="Object_HomeWidgetPoster">
<param name="id" value="-1" />
<param name="focuseditem" value="false" />
</include>
<include content="Object_HomeWidgetPoster">
<param name="id" value="0" />
<param name="focuseditem" value="true" />
</include>
<include content="Object_HomeWidgetPoster">
<param name="id" value="1" />
<param name="focuseditem" value="false" />
</include>
<include content="Object_HomeWidgetPoster">
<param name="id" value="2" />
<param name="focuseditem" value="false" />
</include>
<include content="Object_HomeWidgetPoster">
<param name="id" value="3" />
<param name="focuseditem" value="false" />
</include>
<include content="Object_HomeWidgetPoster">
<param name="id" value="4" />
<param name="focuseditem" value="false" />
</include>
<include content="Object_HomeWidgetPoster">
<param name="id" value="5" />
<param name="focuseditem" value="false" />
</include>
</control>
<control type="grouplist">
<left>850</left>
<right>0</right>
<orientation>horizontal</orientation>
<height>340</height>
<itemgap>70</itemgap>
<visible>!Container(9001).IsUpdating</visible>
<include>Animation_FadeIn</include>
<include>Animation_FadeOut</include>
<visible>[String.IsEqual(Container(9000).ListItem.Property(widget),Weather) | [String.IsEmpty(Container(9000).ListItem.Property(widget)) + [String.IsEqual(Skin.String(home.fallbackwidget),Weather) | String.IsEqual(Skin.String(home.fallbackwidget.node),Weather)]]] + System.HasAddon(resource.images.weatherfanart.multi)</visible>
<include content="Object_WeatherOutlook">
<param name="day" value="Day0" />
<param name="dayname" value="$LOCALIZE[33006]" />
</include>
<include content="Object_WeatherOutlook">
<param name="day" value="Day1" />
<param name="dayname" value="$INFO[Window(weather).Property(Day1.Title)]" />
</include>
<include content="Object_WeatherOutlook">
<param name="day" value="Day2" />
<param name="dayname" value="$INFO[Window(weather).Property(Day2.Title)]" />
</include>
<include content="Object_WeatherOutlook">
<param name="day" value="Day3" />
<param name="dayname" value="$INFO[Window(weather).Property(Day3.Title)]" />
</include>
</control>
</include>
<include name="Home_Widget">
<control type="group">
<posy>400</posy>
<animation effect="slide" end="0,160" condition="String.IsEqual(Skin.String(home.style),$LOCALIZE[31182])">Conditional</animation>
<visible>[[Control.HasFocus(9001) | Control.HasFocus(9101)] + String.IsEqual(Skin.String(home.widgetposters),$LOCALIZE[31154])] | String.IsEqual(Skin.String(home.widgetposters),$LOCALIZE[31153]) | [[[Integer.IsEqual(Window(Home).Property(MenuFocus),9002) + !String.IsEmpty(Container(9002).ListItem.Property(widget)) + !String.IsEmpty(Container(9002).ListItem.Property(PosterWidget))] | [[!Integer.IsEqual(Window(Home).Property(MenuFocus),9002) | String.IsEmpty(Container(9002).ListItem.Property(widget))] + !String.IsEmpty(Container(9000).ListItem.Property(PosterWidget))]] + String.IsEqual(Skin.String(home.widgetposters),$LOCALIZE[31166])]</visible>
<include>Home_Widget_Right</include>
<visible>!Player.HasVideo | [Player.HasVideo + !Skin.HasSetting(background.showvideo)]</visible>
<visible>[Integer.IsEqual(Window(Home).Property(MenuFocus),9002) + !String.IsEmpty(Container(9002).ListItem.Property(widget)) + !String.IsEqual(Container(9002).ListItem.Property(widgetTarget),pictures)] | [[!Integer.IsEqual(Window(Home).Property(MenuFocus),9002) | String.IsEmpty(Container(9002).ListItem.Property(widget))] + [[!String.IsEmpty(Container(9000).ListItem.Property(widget)) + !String.IsEqual(Container(9000).ListItem.Property(widgetTarget),pictures)] | !String.IsEqual(Skin.String(home.fallbackwidget.target),pictures)]]</visible>
</control>
<control type="group">
<posy>400</posy>
<animation effect="slide" end="0,160" condition="String.IsEqual(Skin.String(home.style),$LOCALIZE[31182])">Conditional</animation>
<include>Home_Widget_Left</include>
<visible>!Player.HasVideo | [Player.HasVideo + !Skin.HasSetting(background.showvideo)]</visible>
<visible>[Integer.IsEqual(Window(Home).Property(MenuFocus),9002) + !String.IsEmpty(Container(9002).ListItem.Property(widget)) + !String.IsEqual(Container(9002).ListItem.Property(widgetTarget),pictures)] | [[!Integer.IsEqual(Window(Home).Property(MenuFocus),9002) | String.IsEmpty(Container(9002).ListItem.Property(widget))] + [[!String.IsEmpty(Container(9000).ListItem.Property(widget)) + !String.IsEqual(Container(9000).ListItem.Property(widgetTarget),pictures)] | !String.IsEqual(Skin.String(home.fallbackwidget.target),pictures)]]</visible>
</control>
</include>
<include name="Home_Widget_Hidden">
<control type="group">
<posy>666</posy>
<visible>[Control.HasFocus(9001) | Control.HasFocus(9101)]</visible>
<visible>String.IsEqual(Skin.String(home.widgetposters),$LOCALIZE[31154]) | [!String.IsEmpty(Container(9000).ListItem.Property(PosterWidget)) + String.IsEqual(Skin.String(home.widgetposters),$LOCALIZE[31166])]</visible>
<include>Home_Widget_Right</include>
<visible>!Player.HasVideo | [Player.HasVideo + !Skin.HasSetting(background.showvideo)]</visible>
</control>
<control type="group">
<posy>666</posy>
<visible>[Control.HasFocus(9001) | Control.HasFocus(9101)]</visible>
<include>Home_Widget_Left</include>
<visible>!Player.HasVideo | [Player.HasVideo + !Skin.HasSetting(background.showvideo)]</visible>
</control>
</include>

This removes the Spotlight widget and fixes the background changes, but of course it's not a proper fix for the underlying issue.

Arch Linux x86_64
Kodi 19.3
skin.eminence.2 v4.1.19

@mvn23 mvn23 changed the title Static background gets overridden with fanart. Static background gets overridden with fanart Nov 23, 2021
@jurialmunkey
Copy link
Owner

You need to set the fallback widget.

  • Create a folder with a single image
  • Go to Pictures and add the folder as a source (you might need to add the Pictures menu item temporarily if you've removed it)
  • Go to Skin Settings > Home > Fallback Widget > Pictures Sources > Your Folder

Now the fallback widget will be your image.

@jurialmunkey
Copy link
Owner

Latest version also makes it a bit easier by adding a "Replace fallback widget with image" option which saves you needing to add it as a picture source.

@mvn23
Copy link
Author

mvn23 commented Nov 24, 2021

Adding the fallback widget works indeed. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants