Skip to content

Commit

Permalink
Redesign of OSD settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitcher committed Feb 2, 2025
1 parent 9f7fbab commit b589073
Show file tree
Hide file tree
Showing 9 changed files with 121 additions and 199 deletions.
15 changes: 8 additions & 7 deletions language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ msgid "Turn Off Shuffle All"
msgstr ""

msgctxt "#31047"
msgid "Visualisation Presets"
msgid "Visualisation presets"
msgstr ""

msgctxt "#31048"
Expand Down Expand Up @@ -625,7 +625,7 @@ msgid "hours"
msgstr ""

msgctxt "#31149"
msgid "Hide OSD controls"
msgid "Lyrics settings"
msgstr ""

msgctxt "#31150"
Expand Down Expand Up @@ -940,7 +940,9 @@ msgctxt "#31227"
msgid "Air time"
msgstr ""

#empty string with id 31228
msgctxt "#31228"
msgid "Visualisation settings"
msgstr ""

msgctxt "#31229"
msgid "Cancel Next Up"
Expand All @@ -965,13 +967,12 @@ msgid "Browse Addons"
msgstr ""

msgctxt "#31235"
msgid "Your Rating"
msgid "Your rating"
msgstr ""

#Must match #31235 without the space

#: Must match #31235 but with an underscore instead of the space
msgctxt "#31236"
msgid "Your_Rating"
msgid "Your_rating"
msgstr ""

msgctxt "#31237"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,74 +102,86 @@
<label2>[B]$VAR[StreamSubtitleLabel]$VAR[StreamOriginal]$VAR[StreamForced]$VAR[StreamVisualImpaired]$VAR[StreamHearingImpaired][/B]</label2>
<onclick>SetProperty(VideoOSDSelect,1,home)</onclick>
<onclick>DialogSelectSubtitle</onclick>
<visible>Window.IsVisible(fullscreenvideo)</visible>
</item>
<!-- Audio stream selection button -->
<item id="102">
<label>31220</label>
<label2>[B]$VAR[StreamAudioLanguage]$VAR[AudioCodec, | ]$VAR[AudioChannels, | ][/B]</label2>
<onclick>SetProperty(VideoOSDSelect,1,home)</onclick>
<onclick>DialogSelectAudio</onclick>
<visible>Window.IsVisible(fullscreenvideo)</visible>
</item>
<!-- Video stream selection button -->
<item id="103">
<label>31225</label>
<label2>[B]$VAR[VideoCodec]$INFO[Player.Process(VideoWidth), | ]x$INFO[Player.Process(VideoHeight)]$INFO[Player.Process(VideoScanType)][/B]</label2>
<onclick>SetProperty(VideoOSDSelect,1,home)</onclick>
<onclick>DialogSelectVideo</onclick>
<visible>Window.IsVisible(fullscreenvideo)</visible>
</item>
<!-- Bookmarks button -->
<item id="104">
<label>298</label>
<onclick>ActivateWindow(videobookmarks)</onclick>
<visible>Window.IsVisible(fullscreenvideo)</visible>
</item>
<!-- Subtitle settings button -->
<item id="105">
<label>24133</label>
<onclick>SetProperty(VideoOSDSelect,1,home)</onclick>
<onclick>ActivateWindow(osdsubtitlesettings)</onclick>
<visible>Window.IsVisible(fullscreenvideo)</visible>
</item>
<!-- Audio settings button -->
<item id="106">
<label>13396</label>
<onclick>SetProperty(VideoOSDSelect,1,home)</onclick>
<onclick>ActivateWindow(osdaudiosettings)</onclick>
<visible>Window.IsVisible(fullscreenvideo)</visible>
</item>
<!-- Video settings button -->
<item id="107">
<label>31137</label>
<onclick>SetProperty(VideoOSDSelect,1,home)</onclick>
<onclick>ActivateWindow(osdvideosettings)</onclick>
<visible>Window.IsVisible(fullscreenvideo)</visible>
</item>
<!-- Colour management settings button -->
<item id="108">
<label>36560</label>
<onclick>ActivateWindow(osdcmssettings)</onclick>
<visible>System.HasCMS</visible>
<visible>Window.IsVisible(fullscreenvideo)</visible>
</item>
<!-- Resolution button -->
<item id="109">
<label>169</label>
<onclick>PlayerResolutionSelect</onclick>
<visible>Player.HasResolutions</visible>
<visible>Window.IsVisible(fullscreenvideo)</visible>
</item>
<!-- 3D button -->
<item id="110">
<label>31153</label>
<onclick>Close</onclick>
<onclick>StereoMode</onclick>
<visible>VideoPlayer.IsStereoscopic</visible>
<visible>Window.IsVisible(fullscreenvideo)</visible>
</item>
<!-- Menu button -->
<item id="111">
<label>31136</label>
<onclick>PlayerControl(ShowVideoMenu)</onclick>
<visible>VideoPlayer.HasMenu</visible>
<visible>Window.IsVisible(fullscreenvideo)</visible>
</item>
<!-- Next item button -->
<item id="112">
<label>$VAR[NextVideo]</label>
<onclick>PlayerControl(Next)</onclick>
<visible>Window.IsVisible(VideoFullScreen.xml) + system.getbool(videoplayer.autoplaynextitem)</visible>
<visible>Window.IsVisible(fullscreenvideo)</visible>
</item>
<!-- Play speed button -->
<item id="113">
Expand All @@ -178,6 +190,71 @@
<onclick>Dialog.Close(all)</onclick>
<onclick>ActivateWindow(1111)</onclick>
<visible>Player.TempoEnabled</visible>
<visible>Window.IsVisible(fullscreenvideo)</visible>
</item>
<!-- Lyrics -->
<item id="114">
<label>24013</label>
<label2>[B]$INFO[Skin.String(LyricScript_Path)][/B]</label2>
<onclick>Skin.SetAddon(LyricScript_Path,xbmc.python.lyrics)</onclick>
<visible>Window.IsVisible(visualisation)</visible>
</item>
<!-- Lyrics -->
<item id="115">
<label>31149</label>
<onclick>Addon.OpenSettings($INFO[Skin.String(LyricScript_Path)])</onclick>
<visible>!String.IsEmpty(Skin.String(LyricScript_Path))</visible>
<visible>Window.IsVisible(visualisation)</visible>
</item>
<!-- Playlist -->
<item id="116">
<label>559</label>
<onclick>Dialog.Close(all)</onclick>
<onclick>ActivateWindow(MusicPlaylist)</onclick>
<visible>Window.IsVisible(visualisation)</visible>
</item>
<!-- Repeat -->
<item id="117">
<label>486</label>
<label2>[B]$INFO[Playlist.Repeat][/B]</label2>
<onclick>PlayerControl(Repeat)</onclick>
<visible>Window.IsVisible(visualisation)</visible>
</item>
<!-- Random -->
<item id="118">
<label>590</label>
<label2>[B]$INFO[Playlist.Random][/B]</label2>
<onclick>PlayerControl(Random)</onclick>
<visible>Window.IsVisible(visualisation)</visible>
</item>
<!-- Rating -->
<item id="119">
<label>31235</label>
<label2>[B]$INFO[MusicPlayer.UserRating,,/10][/B]</label2>
<onclick>SetProperty(SetUserRating,music,home)</onclick>
<onclick>setrating</onclick>
<visible>Window.IsVisible(visualisation)</visible>
</item>
<!-- Visualisation -->
<item id="120">
<label>250</label>
<label2>[B]$INFO[Visualisation.Name][/B]</label2>
<onclick>Close</onclick>
<onclick>SendClick(500)</onclick>
<visible>Window.IsVisible(visualisation)</visible>
</item>
<!-- Visualisation settings -->
<item id="121">
<label>31228</label>
<onclick>Addon.Default.OpenSettings(xbmc.player.musicviz)</onclick>
<visible>Window.IsVisible(visualisation)</visible>
</item>
<!-- Visualisation presets -->
<item id="122">
<label>31047</label>
<onclick>ActivateWindow(visualisationpresetlist)</onclick>
<visible>Visualisation.HasPresets</visible>
<visible>Window.IsVisible(visualisation)</visible>
</item>
</content>
</control>
Expand Down
2 changes: 1 addition & 1 deletion xml/DialogMusicInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@
<onclick>SetProperty(SetUserRating,music,home)</onclick>
<onclick>SendClick(7)</onclick>
<font>Med24</font>
<label>[CAPITALIZE]$LOCALIZE[31235][/CAPITALIZE][CR][COLOR=00ffffff]$LOCALIZE[31236][/COLOR]</label>
<label>[CAPITALIZE]$LOCALIZE[31235][CR][COLOR=00ffffff]$LOCALIZE[31236][/COLOR][/CAPITALIZE]</label>
<textoffsetx>56</textoffsetx>
<textcolor>ffdadada</textcolor>
<focusedcolor>ff222222</focusedcolor>
Expand Down
2 changes: 1 addition & 1 deletion xml/Includes_Dialog_Default_Video_Information.xml
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@
<onclick>SetProperty(UserRatingIcon,$INFO[ListItem.Icon],home)</onclick>
<onclick>SendClick(7)</onclick>
<font>Med24</font>
<label>[CAPITALIZE]$LOCALIZE[31235][/CAPITALIZE][CR][COLOR=00ffffff]$LOCALIZE[31236][/COLOR]</label>
<label>[CAPITALIZE]$LOCALIZE[31235][CR][COLOR=00ffffff]$LOCALIZE[31236][/COLOR][/CAPITALIZE]</label>
<textoffsetx>56</textoffsetx>
<textcolor>ffdadada</textcolor>
<focusedcolor>ff222222</focusedcolor>
Expand Down
2 changes: 1 addition & 1 deletion xml/Includes_Dialog_Video_Information.xml
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@
<onclick>SetProperty(UserRatingIcon,$INFO[ListItem.Icon],home)</onclick>
<onclick>SendClick(7)</onclick>
<font>Med24</font>
<label>[CAPITALIZE]$LOCALIZE[31235][/CAPITALIZE][CR][COLOR=00ffffff]$LOCALIZE[31236][/COLOR]</label>
<label>[CAPITALIZE]$LOCALIZE[31235][CR][COLOR=00ffffff]$LOCALIZE[31236][/COLOR][/CAPITALIZE]</label>
<textoffsetx>56</textoffsetx>
<textcolor>ffdadada</textcolor>
<focusedcolor>ff222222</focusedcolor>
Expand Down
Loading

0 comments on commit b589073

Please sign in to comment.