Skip to content

Commit

Permalink
Widget fixes - allow background setting for None widget, restore subm…
Browse files Browse the repository at this point in the history
…enu widget functionality, allow renaming fallbackwidget
  • Loading branch information
jurialmunkey committed Oct 20, 2021
1 parent 17ba059 commit 842ff4e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions 16x9/DialogSelect.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<window>
<defaultcontrol always="true">3</defaultcontrol>
<onunload condition="!String.IsEmpty(Window(Home).Property(home.fallbackwidget.name)) + !String.IsEqual(Skin.String(home.fallbackwidget.name),Window(Home).Property(home.fallbackwidget.name))">Skin.SetString(home.fallbackwidget.name)</onunload>
<onunload condition="!String.IsEmpty(Window(Home).Property(home.fallbackwidget.name)) + !String.IsEqual(Skin.String(home.fallbackwidget.name),Window(Home).Property(home.fallbackwidget.name))">ClearProperty(home.fallbackwidget.name,home)</onunload>
<controls>
<include>GlobalOverlay</include>
<include condition="![Window.IsActive(gamestretchmode) | Window.IsActive(gamevideofilter) | Window.IsActive(gamevideorotation)]">Dialog_Select</include>
<include condition="Window.IsActive(gamestretchmode) | Window.IsActive(gamevideofilter) | Window.IsActive(gamevideorotation)">Dialog_Select_Game</include>



<!-- Hidden Label -->
<control type="label" id="1"><visible>false</visible><font /></control>
</controls>
Expand Down
1 change: 1 addition & 0 deletions 16x9/Includes_Defs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@
</control>
</include>
<variable name="Defs_HomeWidget_Content">
<value condition="String.IsEmpty(Container(9000).ListItem.Property(widget)) + !String.IsEmpty(Container(9000).ListItem.Property(background))">-</value>
<value condition="String.IsEqual(Container(9000).ListItem.Property(widget),Weather) + System.HasAddon(resource.images.weatherfanart.multi)">$INFO[Window(Weather).Property(Current.FanartCode),resource://resource.images.weatherfanart.multi/,]/</value>
<value condition="[String.IsEqual(Skin.String(home.fallbackwidget),Weather) | String.IsEqual(Skin.String(home.fallbackwidget.node),Weather)] + System.HasAddon(resource.images.weatherfanart.multi)">$INFO[Window(Weather).Property(Current.FanartCode),resource://resource.images.weatherfanart.multi/,]/</value>
<value condition="!String.IsEmpty(Skin.String(home.fallbackwidget))">$INFO[Skin.String(home.fallbackwidget)]</value>
Expand Down
1 change: 1 addition & 0 deletions 16x9/SkinSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
<width>100%</width>
<label>31147</label>
<label2>$VAR[Label_SkinSetting_FallbackWidget]</label2>
<onclick>SetProperty(home.fallbackwidget.name,$INFO[Skin.String(home.fallbackwidget.name)],home)</onclick>
<onclick>RunScript(script.skinshortcuts,type=widgets&amp;grouping=widget&amp;skinWidgetPath=home.fallbackwidget&amp;skinWidget=home.fallbackwidget.node&amp;skinWidgetName=home.fallbackwidget.name&amp;skinWidgetType=home.fallbackwidget.type&amp;skinWidgetTarget=home.fallbackwidget.target)</onclick>
<height>72</height>
<include>Defs_OptionButton</include>
Expand Down
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<addon id="skin.eminence.2" name="Eminence" provider-name="jurialmunkey" version="4.1.14">
<addon id="skin.eminence.2" name="Eminence" provider-name="jurialmunkey" version="4.1.15">
<requires>
<import addon="xbmc.gui" version="5.15.0" />
<import addon="script.skinshortcuts" version="1.0.0" />
Expand Down
4 changes: 2 additions & 2 deletions shortcuts/template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<property name="isWeather">False</property>
<controls>
<control type="wraplist" id="9001">
<visible>Integer.IsEqual(Window(Home).Property(MenuFocus),9002) + !String.IsEmpty(Container(9002).ListItem.Property(widgetType))</visible>
<visible>Integer.IsEqual(Window(Home).Property(MenuFocus),9002) + !String.IsEmpty(Container(9002).ListItem.Property(widget))</visible>
<skinshortcuts>visibility</skinshortcuts>
<visible>!Player.HasVideo | [Player.HasVideo + !Skin.HasSetting(background.showvideo)]</visible>
<orientation>horizontal</orientation>
Expand Down Expand Up @@ -42,7 +42,7 @@
<property name="isWeather">False</property>
<controls>
<control type="wraplist" id="9001">
<visible>!Integer.IsEqual(Window(Home).Property(MenuFocus),9002) | String.IsEmpty(Container(9002).ListItem.Property(widgetType))</visible>
<visible>!Integer.IsEqual(Window(Home).Property(MenuFocus),9002) | String.IsEmpty(Container(9002).ListItem.Property(widget))</visible>
<skinshortcuts>visibility</skinshortcuts>
<visible>!Player.HasVideo | [Player.HasVideo + !Skin.HasSetting(background.showvideo)]</visible>
<orientation>horizontal</orientation>
Expand Down

0 comments on commit 842ff4e

Please sign in to comment.