Skip to content

Commit

Permalink
Fix music visualiser labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitcher committed Apr 1, 2024
1 parent 0f36ec1 commit 347a9d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 3 additions & 1 deletion language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,9 @@ msgctxt "#31192"
msgid "Director"
msgstr ""

#empty string with id 31193
msgctxt "#31193"
msgid "Now Playing"
msgstr ""

msgctxt "#31194"
msgid "Submit"
Expand Down
15 changes: 9 additions & 6 deletions xml/MusicVisualisation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<font>Med48</font>
<aligny>bottom</aligny>
<textcolor>ffdadada</textcolor>
<label>$LOCALIZE[10517] </label>
<label>$LOCALIZE[31193] </label>
</control>
<control type="label">
<top>34</top>
Expand All @@ -52,7 +52,8 @@
<font>Med32</font>
<aligny>bottom</aligny>
<textcolor>ffdadada</textcolor>
<label>$INFO[MusicPlayer.PlaylistPosition]</label>
<label>$INFO[Playlist.Position]</label>
<visible>Integer.IsGreater(Playlist.Length(music),1) + Integer.IsGreater(Playlist.Position(music),0)</visible>
</control>
<control type="label">
<top>26</top>
Expand All @@ -62,6 +63,7 @@
<aligny>bottom</aligny>
<textcolor>ff505050</textcolor>
<label>|</label>
<visible>Integer.IsGreater(Playlist.Length(music),1) + Integer.IsGreater(Playlist.Position(music),0)</visible>
</control>
<control type="label">
<top>34</top>
Expand All @@ -70,7 +72,8 @@
<font>Light32</font>
<aligny>bottom</aligny>
<textcolor>ff505050</textcolor>
<label>$INFO[MusicPlayer.PlaylistLength]</label>
<label>$INFO[Playlist.Length]</label>
<visible>Integer.IsGreater(Playlist.Length(music),1) + Integer.IsGreater(Playlist.Position(music),0)</visible>
</control>
</control>
<!-- Title -->
Expand All @@ -81,15 +84,15 @@
<height>52</height>
<font>Med26</font>
<textcolor>ffbebebe</textcolor>
<label>$INFO[MusicPlayer.Title]</label>
<label>$INFO[Player.Title]</label>
</control>
<!-- Cover -->
<control type="image">
<left>396</left>
<top>1672</top>
<width>308</width>
<height>308</height>
<texture fallback="common/missing_image_cover.png">$INFO[Player.Art(thumb)]</texture>
<texture fallback="common/missing_image_cover.png">$INFO[Player.Icon]</texture>
<aspectratio align="center" aligny="bottom">scale</aspectratio>
</control>
<!-- Details -->
Expand All @@ -102,7 +105,7 @@
<height>80</height>
<font>Med40</font>
<textcolor>ffbebebe</textcolor>
<label>$INFO[MusicPlayer.Album]</label>
<label fallback="$INFO[Player.Title]">$INFO[MusicPlayer.Album]</label>
</control>
<!-- Artist / Track -->
<control type="label">
Expand Down

0 comments on commit 347a9d6

Please sign in to comment.