Skip to content

Commit

Permalink
some fixes for alphabet strip - hide when only one page or not sorted…
Browse files Browse the repository at this point in the history
… by name, use text highlight colour instead of list highlight colour
  • Loading branch information
jurialmunkey committed Oct 20, 2021
1 parent fcc8b66 commit 8d8d25d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions 16x9/Includes_Object.xml
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@
<label>[B]$PARAM[label][/B]</label>
<align>center</align>
<aligny>center</aligny>
<textcolor>$VAR[HighlightColor]</textcolor>
<textcolor>$VAR[HighlightColor2]</textcolor>
<font>Font-Button</font>
<visible>$PARAM[visible]</visible>
<visible>Control.HasFocus($PARAM[id])</visible>
Expand Down Expand Up @@ -867,9 +867,9 @@
<param name="visible" default="true" />
<definition>
<control type="scrollbar" id="60">
<onleft condition="Skin.HasSetting(furniture.alphabet) + !Skin.HasSetting(global.widescreen)">62</onleft>
<onleft condition="Skin.HasSetting(furniture.alphabet) + Skin.HasSetting(global.widescreen)">63</onleft>
<onleft condition="!String.IsEqual(Window(home).Property(HubReturn),Home) + !Skin.HasSetting(furniture.alphabet)">ActivateWindow($INFO[Window(home).Property(HubReturn)])</onleft>
<onleft condition="Skin.HasSetting(furniture.alphabet) + !Skin.HasSetting(global.widescreen) + $EXP[Object_Alphabet_Enabled]">62</onleft>
<onleft condition="Skin.HasSetting(furniture.alphabet) + Skin.HasSetting(global.widescreen) + $EXP[Object_Alphabet_Enabled]">63</onleft>
<onleft condition="!String.IsEqual(Window(home).Property(HubReturn),Home) + [!Skin.HasSetting(furniture.alphabet) | !$EXP[Object_Alphabet_Enabled]]">ActivateWindow($INFO[Window(home).Property(HubReturn)])</onleft>

<left>$PARAM[left]</left>
<height>100%</height>
Expand All @@ -885,9 +885,9 @@
<param name="visible" default="true" />
<definition>
<control type="scrollbar" id="61">
<ondown condition="Skin.HasSetting(furniture.alphabet) + Skin.HasSetting(furniture.showflags)">62</ondown>
<ondown condition="Skin.HasSetting(furniture.alphabet) + !Skin.HasSetting(furniture.showflags)">63</ondown>
<ondown condition="!String.IsEqual(Window(home).Property(HubReturn),Home) + !Skin.HasSetting(furniture.alphabet)">ActivateWindow($INFO[Window(home).Property(HubReturn)])</ondown>
<ondown condition="Skin.HasSetting(furniture.alphabet) + Skin.HasSetting(furniture.showflags) + $EXP[Object_Alphabet_Enabled]">62</ondown>
<ondown condition="Skin.HasSetting(furniture.alphabet) + !Skin.HasSetting(furniture.showflags) + $EXP[Object_Alphabet_Enabled]">63</ondown>
<ondown condition="!String.IsEqual(Window(home).Property(HubReturn),Home) + [!Skin.HasSetting(furniture.alphabet) | !$EXP[Object_Alphabet_Enabled]]">ActivateWindow($INFO[Window(home).Property(HubReturn)])</ondown>
<onup>50</onup>
<bottom>0</bottom>
<orientation>horizontal</orientation>
Expand All @@ -900,6 +900,8 @@
</definition>
</include>

<expression name="Object_Alphabet_Enabled">[[String.IsEqual(Container.SortMethod,$LOCALIZE[551]) | String.IsEqual(Container.SortMethod,$LOCALIZE[556]) | String.IsEqual(Container.SortMethod,$LOCALIZE[561]) | String.IsEqual(Container.SortMethod,$LOCALIZE[557]) | String.IsEqual(Container.SortMethod,$LOCALIZE[558])] + Integer.IsGreater(Container.NumPages,1)]</expression>

<include name="Object_View_Scrollbars">
<control type="group">
<left>bigpad</left>
Expand All @@ -910,14 +912,14 @@
<left>-84</left>
<width>80</width>
<include content="Object_Alphabet_Vert" condition="Skin.HasSetting(furniture.alphabet) + !Skin.HasSetting(global.widescreen)">
<param name="visible" value="[Skin.HasSetting(furniture.showflags) + [Control.IsVisible(52) | Control.IsVisible(525) | Control.IsVisible(58) | Control.IsVisible(535)]] | [Control.IsVisible(50) | Control.IsVisible(550) | Control.IsVisible(552) | Control.IsVisible(510) | Control.IsVisible(51) | Control.IsVisible(57) | Control.IsVisible(577) | Control.IsVisible(53) | Control.IsVisible(553) | Control.IsVisible(54) | Control.IsVisible(500) | Control.IsVisible(59) | Control.IsVisible(55) | Control.IsVisible(56) | Control.IsVisible(56)]" />
<param name="visible" value="[[Skin.HasSetting(furniture.showflags) + [Control.IsVisible(52) | Control.IsVisible(525) | Control.IsVisible(58) | Control.IsVisible(535)]] | [Control.IsVisible(50) | Control.IsVisible(550) | Control.IsVisible(552) | Control.IsVisible(510) | Control.IsVisible(51) | Control.IsVisible(57) | Control.IsVisible(577) | Control.IsVisible(53) | Control.IsVisible(553) | Control.IsVisible(54) | Control.IsVisible(500) | Control.IsVisible(59) | Control.IsVisible(55) | Control.IsVisible(56) | Control.IsVisible(56)]] + $EXP[Object_Alphabet_Enabled]" />
</include>
</control>
<control type="group">
<bottom>-80</bottom>
<height>80</height>
<include content="Object_Alphabet_Horz" condition="Skin.HasSetting(furniture.alphabet) + !Skin.HasSetting(furniture.showflags)">
<param name="visible" value="[Control.IsVisible(52) | Control.IsVisible(525) | Control.IsVisible(58) | Control.IsVisible(535)] | [Skin.HasSetting(global.widescreen) + [Control.IsVisible(50) | Control.IsVisible(550) | Control.IsVisible(552) | Control.IsVisible(510) | Control.IsVisible(51) | Control.IsVisible(57) | Control.IsVisible(577) | Control.IsVisible(53) | Control.IsVisible(553) | Control.IsVisible(54) | Control.IsVisible(500) | Control.IsVisible(59) | Control.IsVisible(55) | Control.IsVisible(56) | Control.IsVisible(56)]]" />
<param name="visible" value="[[Control.IsVisible(52) | Control.IsVisible(525) | Control.IsVisible(58) | Control.IsVisible(535)] | [Skin.HasSetting(global.widescreen) + [Control.IsVisible(50) | Control.IsVisible(550) | Control.IsVisible(552) | Control.IsVisible(510) | Control.IsVisible(51) | Control.IsVisible(57) | Control.IsVisible(577) | Control.IsVisible(53) | Control.IsVisible(553) | Control.IsVisible(54) | Control.IsVisible(500) | Control.IsVisible(59) | Control.IsVisible(55) | Control.IsVisible(56) | Control.IsVisible(56)]]] + $EXP[Object_Alphabet_Enabled]" />
</include>
</control>
<include content="Object_Scrollbar">
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.17">
<addon id="skin.eminence.2" name="Eminence" provider-name="jurialmunkey" version="4.1.18">
<requires>
<import addon="xbmc.gui" version="5.15.0" />
<import addon="script.skinshortcuts" version="1.0.0" />
Expand Down

0 comments on commit 8d8d25d

Please sign in to comment.