aboutsummaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorksooo <3226626+ksooo@users.noreply.github.com>2023-08-21 22:24:02 +0200
committerksooo <3226626+ksooo@users.noreply.github.com>2023-08-28 15:40:11 +0200
commitbba1d29f0044950bfbbe4c5cf0cd8ad7ecf05f4c (patch)
treeed542638b68cf0ea8a81eaced1e97fa0a3634c72 /addons
parent9e88ab7cd48c7d944281df37f9d39075aef65990 (diff)
[listproviders][Estuary] Add special 'more...' item to size limited lists in case there are more items available.
Diffstat (limited to 'addons')
-rw-r--r--addons/skin.estuary/xml/Home.xml6
-rw-r--r--addons/skin.estuary/xml/Includes_Home.xml81
-rw-r--r--addons/skin.estuary/xml/Variables.xml9
3 files changed, 70 insertions, 26 deletions
diff --git a/addons/skin.estuary/xml/Home.xml b/addons/skin.estuary/xml/Home.xml
index 9a27af758a..cf89675000 100644
--- a/addons/skin.estuary/xml/Home.xml
+++ b/addons/skin.estuary/xml/Home.xml
@@ -365,7 +365,7 @@
<param name="widget_header" value="$LOCALIZE[136]"/>
<param name="widget_target" value="videos"/>
<param name="list_id" value="11200"/>
- <param name="icon" value="DefaultPlaylist.png"/>
+ <param name="icon" value="$VAR[WidgetPlaylistIconVar]"/>
</include>
</control>
<include content="ImageWidget">
@@ -398,6 +398,7 @@
<param name="sortby" value="lastplayed"/>
<param name="sortorder" value="descending"/>
<param name="widget_header" value="$LOCALIZE[31016]"/>
+ <param name="widget_target" value="tvchannels"/>
<param name="item_limit" value="15"/>
<param name="list_id" value="12200"/>
<param name="info_update" value="5000"/>
@@ -407,6 +408,7 @@
<param name="sortby" value="date"/>
<param name="sortorder" value="descending"/>
<param name="widget_header" value="$LOCALIZE[31015]"/>
+ <param name="widget_target" value="tvrecordings"/>
<param name="item_limit" value="15"/>
<param name="list_id" value="12300"/>
<param name="label" value="$INFO[ListItem.Title]$INFO[ListItem.Date, (,)]"/>
@@ -468,6 +470,7 @@
<param name="sortby" value="lastplayed"/>
<param name="sortorder" value="descending"/>
<param name="widget_header" value="$LOCALIZE[31018]"/>
+ <param name="widget_target" value="radiochannels"/>
<param name="item_limit" value="15"/>
<param name="list_id" value="13200"/>
<param name="info_update" value="5000"/>
@@ -477,6 +480,7 @@
<param name="sortby" value="date"/>
<param name="sortorder" value="descending"/>
<param name="widget_header" value="$LOCALIZE[31015]"/>
+ <param name="widget_target" value="radiorecordings"/>
<param name="item_limit" value="15"/>
<param name="list_id" value="13300"/>
<param name="label" value="$INFO[ListItem.Title]$INFO[ListItem.Date, (,)]"/>
diff --git a/addons/skin.estuary/xml/Includes_Home.xml b/addons/skin.estuary/xml/Includes_Home.xml
index bfcae45514..f608f49bfe 100644
--- a/addons/skin.estuary/xml/Includes_Home.xml
+++ b/addons/skin.estuary/xml/Includes_Home.xml
@@ -449,23 +449,38 @@
<texture fallback="DefaultTVShows.png">$PARAM[icon]</texture>
<aspectratio>keep</aspectratio>
</control>
+ <control type="group">
+ <visible>!String.IsEqual(ListItem.Property(node.type),target_folder)</visible>
+ <control type="label">
+ <left>42</left>
+ <top>247</top>
+ <width>245</width>
+ <height>70</height>
+ <label>$PARAM[label]</label>
+ <font>font12</font>
+ <shadowcolor>text_shadow</shadowcolor>
+ <align>center</align>
+ <aligny>top</aligny>
+ </control>
+ <control type="label">
+ <left>42</left>
+ <top>277</top>
+ <width>245</width>
+ <height>65</height>
+ <label>$PARAM[label2]</label>
+ <font>font12</font>
+ <shadowcolor>text_shadow</shadowcolor>
+ <align>center</align>
+ <aligny>top</aligny>
+ </control>
+ </control>
<control type="label">
<left>42</left>
<top>247</top>
<width>245</width>
<height>70</height>
- <label>$PARAM[label]</label>
- <font>font12</font>
- <shadowcolor>text_shadow</shadowcolor>
- <align>center</align>
- <aligny>top</aligny>
- </control>
- <control type="label">
- <left>42</left>
- <top>277</top>
- <width>245</width>
- <height>65</height>
- <label>$PARAM[label2]</label>
+ <visible>String.IsEqual(ListItem.Property(node.type),target_folder)</visible>
+ <label>$INFO[ListItem.Label]</label>
<font>font12</font>
<shadowcolor>text_shadow</shadowcolor>
<align>center</align>
@@ -532,24 +547,40 @@
<texture fallback="DefaultTVShows.png">$PARAM[icon]</texture>
<aspectratio>keep</aspectratio>
</control>
+ <control type="group">
+ <visible>!String.IsEqual(ListItem.Property(node.type),target_folder)</visible>
+ <control type="label">
+ <left>42</left>
+ <top>247</top>
+ <width>245</width>
+ <height>70</height>
+ <label>$PARAM[label]</label>
+ <font>font12</font>
+ <shadowcolor>text_shadow</shadowcolor>
+ <align>center</align>
+ <scroll>true</scroll>
+ <aligny>top</aligny>
+ </control>
+ <control type="label">
+ <left>42</left>
+ <top>277</top>
+ <width>245</width>
+ <height>65</height>
+ <label>$PARAM[label2]</label>
+ <font>font12</font>
+ <shadowcolor>text_shadow</shadowcolor>
+ <align>center</align>
+ <scroll>true</scroll>
+ <aligny>top</aligny>
+ </control>
+ </control>
<control type="label">
<left>42</left>
<top>247</top>
<width>245</width>
<height>70</height>
- <label>$PARAM[label]</label>
- <font>font12</font>
- <shadowcolor>text_shadow</shadowcolor>
- <align>center</align>
- <scroll>true</scroll>
- <aligny>top</aligny>
- </control>
- <control type="label">
- <left>42</left>
- <top>277</top>
- <width>245</width>
- <height>65</height>
- <label>$PARAM[label2]</label>
+ <visible>String.IsEqual(ListItem.Property(node.type),target_folder)</visible>
+ <label>$INFO[ListItem.Label]</label>
<font>font12</font>
<shadowcolor>text_shadow</shadowcolor>
<align>center</align>
diff --git a/addons/skin.estuary/xml/Variables.xml b/addons/skin.estuary/xml/Variables.xml
index 7541e834af..7acf83468f 100644
--- a/addons/skin.estuary/xml/Variables.xml
+++ b/addons/skin.estuary/xml/Variables.xml
@@ -159,13 +159,19 @@
<value condition="MusicPlayer.IsMultiDisc">$INFO[MusicPlayer.DiscNumber]$INFO[MusicPlayer.DiscTitle, - ]</value>
</variable>
<variable name="WidgetGenreIconVar">
+ <value condition="String.IsEqual(ListItem.Property(node.type),target_folder)">$INFO[ListItem.Icon]</value>
<value condition="System.AddonIsEnabled(resource.images.moviegenreicons.transparent)">$INFO[ListItem.Label,resource://resource.images.moviegenreicons.transparent/,.png]</value>
<value>DefaultGenre.png</value>
</variable>
<variable name="WidgetStudioIconVar">
+ <value condition="String.IsEqual(ListItem.Property(node.type),target_folder)">$INFO[ListItem.Icon]</value>
<value condition="System.AddonIsEnabled(resource.images.studios.white)">$INFO[ListItem.Label,resource://resource.images.studios.white/,.png]</value>
<value>DefaultStudios.png</value>
</variable>
+ <variable name="WidgetPlaylistIconVar">
+ <value condition="String.IsEqual(ListItem.Property(node.type),target_folder)">$INFO[ListItem.Icon]</value>
+ <value>DefaultPlaylist.png</value>
+ </variable>
<variable name="AddonsLabel2Var">
<value condition="ListItem.Property(addon.downloading)">$INFO[ListItem.Property(addon.status)]</value>
<value condition="!Container.SortMethod(1)">$INFO[ListItem.Label2]</value>
@@ -190,6 +196,7 @@
<value>$LOCALIZE[37015]</value>
</variable>
<variable name="AlbumOnClickActionVar">
+ <value condition="String.IsEqual(ListItem.Property(node.type),target_folder)">ActivateWindow(music,$INFO[ListItem.FilenameAndPath],return)</value>
<value condition="Skin.HasSetting(album_onclick_browse)">ActivateWindow(music,musicdb://albums/$INFO[ListItem.DBID]/,return)</value>
<value condition="Skin.HasSetting(album_onclick_play)">PlayMedia(musicdb://albums/$INFO[ListItem.DBID]/)</value>
<value condition="Skin.HasSetting(album_onclick_playnext)">QueueMedia(musicdb://albums/$INFO[ListItem.DBID]/,playnext)</value>
@@ -205,6 +212,7 @@
<value>$LOCALIZE[37015]</value>
</variable>
<variable name="TVShowOnClickActionVar">
+ <value condition="String.IsEqual(ListItem.Property(node.type),target_folder)">ActivateWindow(videos,$INFO[ListItem.FilenameAndPath],return)</value>
<value condition="Skin.HasSetting(tvshow_onclick_browse)">ActivateWindow(videos,videodb://tvshows/titles/$INFO[ListItem.DBID]/,return)</value>
<value condition="Skin.HasSetting(tvshow_onclick_continuewatching)">PlayMedia(videodb://tvshows/titles/$INFO[ListItem.DBID]/,resume)</value>
<value condition="Skin.HasSetting(tvshow_onclick_playfrombeginning)">PlayMedia(videodb://tvshows/titles/$INFO[ListItem.DBID]/,noresume)</value>
@@ -221,6 +229,7 @@
<value>$LOCALIZE[37015]</value>
</variable>
<variable name="MovieSetOnClickActionVar">
+ <value condition="String.IsEqual(ListItem.Property(node.type),target_folder)">ActivateWindow(videos,$INFO[ListItem.FilenameAndPath],return)</value>
<value condition="Skin.HasSetting(movieset_onclick_browse)">ActivateWindow(videos,videodb://movies/sets/$INFO[ListItem.DBID]/,return)</value>
<value condition="Skin.HasSetting(movieset_onclick_continuewatching)">PlayMedia(videodb://movies/sets/$INFO[ListItem.DBID]/,resume)</value>
<value condition="Skin.HasSetting(movieset_onclick_playfrombeginning)">PlayMedia(videodb://movies/sets/$INFO[ListItem.DBID]/,noresume)</value>