aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjjd-uk <jjd-uk@kodi.tv>2023-11-29 18:37:16 +0000
committerjjd-uk <jjd-uk@kodi.tv>2023-11-29 18:37:16 +0000
commitd6902408bab095aeea91f3bd9f3337fd2696afb1 (patch)
tree910f5461fbfb4e0d788ced01f4c38c76d97dbb5d
parent53101ab16d1ecf5f5046a168479e27d3ec428bfd (diff)
Estuary - add media flags for music
-rw-r--r--addons/skin.estuary/xml/DialogMusicInfo.xml7
-rw-r--r--addons/skin.estuary/xml/Includes.xml107
-rw-r--r--addons/skin.estuary/xml/MyMusicNav.xml8
3 files changed, 122 insertions, 0 deletions
diff --git a/addons/skin.estuary/xml/DialogMusicInfo.xml b/addons/skin.estuary/xml/DialogMusicInfo.xml
index b4dd30ff03..50d07c0996 100644
--- a/addons/skin.estuary/xml/DialogMusicInfo.xml
+++ b/addons/skin.estuary/xml/DialogMusicInfo.xml
@@ -527,6 +527,13 @@
</include>
</control>
</control>
+ <control type="group">
+ <centerleft>50%</centerleft>
+ <width>1920</width>
+ <bottom>0</bottom>
+ <height>70</height>
+ <include>MediaFlags</include>
+ </control>
<include condition="Skin.HasSetting(touchmode)">TouchBackButton</include>
</controls>
</window>
diff --git a/addons/skin.estuary/xml/Includes.xml b/addons/skin.estuary/xml/Includes.xml
index d1bb0bb0fe..eafd49e62a 100644
--- a/addons/skin.estuary/xml/Includes.xml
+++ b/addons/skin.estuary/xml/Includes.xml
@@ -355,6 +355,7 @@
<param name="resolution_var">$VAR[ResolutionFlagVar]</param>
<definition>
<control type="grouplist">
+ <visible>Window.IsActive(Home) | Window.IsActive(10025)</visible>
<orientation>horizontal</orientation>
<right>20</right>
<top>0</top>
@@ -419,6 +420,112 @@
<param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.AudioChannels)" />
</include>
</control>
+ <control type="grouplist">
+ <visible>Container.Content(albums) | Window.IsActive(10502)</visible>
+ <orientation>horizontal</orientation>
+ <right>20</right>
+ <top>0</top>
+ <height>70</height>
+ <align>right</align>
+ <itemgap>10</itemgap>
+ <width>1900</width>
+ <usecontrolcoords>true</usecontrolcoords>
+ <control type="group">
+ <width>115</width>
+ <visible>!String.IsEmpty($PARAM[infolabel_prefix]ListItem.Duration)</visible>
+ <visible>Container.Content(albums) | Window.IsActive(DialogMusicInfo.xml) + Container.Content(songs)</visible>
+ <control type="label">
+ <width>110</width>
+ <height>60</height>
+ <align>center</align>
+ <aligny>center</aligny>
+ <label>$INFO[$PARAM[infolabel_prefix]ListItem.Duration]</label>
+ <font>font_flag</font>
+ </control>
+ <include content="MediaFlag">
+ <param name="texture" value="flags/flag.png" />
+ </include>
+ </control>
+ <control type="group">
+ <width>115</width>
+ <visible>!String.IsEmpty($PARAM[infolabel_prefix]ListItem.FileExtension)</visible>
+ <control type="label">
+ <width>110</width>
+ <height>60</height>
+ <align>center</align>
+ <aligny>center</aligny>
+ <label>$INFO[$PARAM[infolabel_prefix]ListItem.FileExtension]</label>
+ <font>font_flag</font>
+ </control>
+ <include content="MediaFlag">
+ <param name="texture" value="flags/flag.png" />
+ </include>
+ </control>
+ <include content="MediaFlag">
+ <param name="texture" value="$INFO[$PARAM[infolabel_prefix]ListItem.MusicChannels,flags/audiochannel/,.png]" />
+ <param name="visible" value="!String.IsEmpty($PARAM[infolabel_prefix]ListItem.MusicChannels)" />
+ </include>
+ <control type="group">
+ <visible>!String.IsEmpty(ListItem.Samplerate)</visible>
+ <width>115</width>
+ <control type="label">
+ <width>110</width>
+ <height>60</height>
+ <align>center</align>
+ <aligny>center</aligny>
+ <label>$INFO[ListItem.Samplerate, ,kHz]</label>
+ <font>font_flag</font>
+ </control>
+ <include content="MediaFlag">
+ <param name="texture" value="flags/flag.png" />
+ </include>
+ </control>
+ <control type="group">
+ <visible>!String.IsEmpty(ListItem.BitRate)</visible>
+ <width>115</width>
+ <control type="label">
+ <width>110</width>
+ <height>60</height>
+ <align>center</align>
+ <aligny>center</aligny>
+ <label>$INFO[ListItem.BitRate, ,kbps]</label>
+ <font>font_flag</font>
+ </control>
+ <include content="MediaFlag">
+ <param name="texture" value="flags/flag.png" />
+ </include>
+ </control>
+ <control type="group">
+ <visible>!String.IsEmpty(ListItem.MusicBitsPerSample)</visible>
+ <width>115</width>
+ <control type="label">
+ <width>110</width>
+ <height>60</height>
+ <align>center</align>
+ <aligny>center</aligny>
+ <label>$INFO[ListItem.MusicBitsPerSample, ,bit]</label>
+ <font>font_flag</font>
+ </control>
+ <include content="MediaFlag">
+ <param name="texture" value="flags/flag.png" />
+ </include>
+ </control>
+ <control type="group">
+ <visible>!String.IsEmpty(ListItem.BMP)</visible>
+ <width>115</width>
+ <control type="label">
+ <width>110</width>
+ <height>60</height>
+ <align>center</align>
+ <aligny>center</aligny>
+ <label>$INFO[ListItem.BMP, ,bpm]</label>
+ <font>font_flag</font>
+ </control>
+ <include content="MediaFlag">
+ <param name="texture" value="flags/flag.png" />
+ </include>
+ </control>
+ </control>
</definition>
</include>
<include name="WeatherIconHome">
diff --git a/addons/skin.estuary/xml/MyMusicNav.xml b/addons/skin.estuary/xml/MyMusicNav.xml
index c83c429e60..84dfbc8f7f 100644
--- a/addons/skin.estuary/xml/MyMusicNav.xml
+++ b/addons/skin.estuary/xml/MyMusicNav.xml
@@ -27,6 +27,14 @@
<include content="BottomBar">
<param name="info_visible" value="true" />
</include>
+ <control type="group">
+ <depth>DepthBars</depth>
+ <bottom>0</bottom>
+ <height>70</height>
+ <animation effect="fade" start="0" end="100" time="300" delay="300">WindowOpen</animation>
+ <animation effect="fade" start="100" end="0" time="200">WindowClose</animation>
+ <include condition="!Skin.HasSetting(hide_mediaflags)">MediaFlags</include>
+ </control>
<include>MediaMenuMouseOverlay</include>
<control type="group">
<include>MediaMenuCommon</include>