Skip to content

Commit

Permalink
added option to hide the OSD during volume change for better subtitle…
Browse files Browse the repository at this point in the history
… compatiblity
  • Loading branch information
sualfred committed Jul 13, 2019
1 parent e4ce048 commit bfe7c99
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions language/resource.language.en_gb/strings.po
Expand Up @@ -1862,3 +1862,8 @@ msgstr ""
msgctxt "#31368"
msgid "Blurring strength"
msgstr ""

#: /xml/Embuary_SkinSettings.xml
msgctxt "#31369"
msgid "Hide player OSD during volume change"
msgstr ""
2 changes: 1 addition & 1 deletion xml/DialogVolumeBar.xml
Expand Up @@ -10,7 +10,7 @@
</control>
<!-- Dialog -->
<control type="group">
<visible>!VideoPlayer.IsFullscreen + !Window.IsVisible(visualisation)</visible>
<visible>[!VideoPlayer.IsFullscreen + !Window.IsVisible(visualisation)] | Skin.HasSetting(DefaultVolume)</visible>
<animation type="WindowOpen" reversible="false">
<effect type="slide" start="0,-200" end="0,0" delay="100" tween="circle" easin="out" time="400" />
<effect type="fade" delay="160" end="100" time="400" />
Expand Down
6 changes: 6 additions & 0 deletions xml/Embuary_SkinSettings.xml
Expand Up @@ -660,6 +660,12 @@
<onclick>Skin.ToggleSetting(FancyLyrics)</onclick>
<enable>System.HasAddon(script.cu.lrclyrics)</enable>
</control>
<control type="radiobutton" id="$PARAM[id]14">
<include>SettingsButton</include>
<label>$LOCALIZE[31369]</label>
<selected>Skin.HasSetting(DefaultVolume)</selected>
<onclick>Skin.ToggleSetting(DefaultVolume)</onclick>
</control>
<!-- library and media -->
<include content="SkinSettingsHeadlineLabel">
<param name="id" value="$PARAM[id]20"/>
Expand Down
2 changes: 1 addition & 1 deletion xml/MusicVisualisation.xml
Expand Up @@ -19,7 +19,7 @@
</control>
<!-- OSD -->
<control type="group" id="99">
<visible>Window.IsVisible(musicosd) | Window.IsVisible(seekbar) | Player.Paused | [Window.IsVisible(volumebar) + !Player.Muted] | !String.IsEmpty(Window(home).Property(showvisinfo))</visible>
<visible>Window.IsVisible(musicosd) | Window.IsVisible(seekbar) | Player.Paused | [Window.IsVisible(volumebar) + !Player.Muted + !Skin.HasSetting(DefaultVolume)] | !String.IsEmpty(Window(home).Property(showvisinfo))</visible>
<animation effect="fade" start="0" end="100" time="0">Visible</animation>
<animation effect="fade" start="100" end="0" time="400" delay="2000">Hidden</animation>
<!--Top-->
Expand Down
2 changes: 1 addition & 1 deletion xml/VideoFullScreen.xml
Expand Up @@ -33,7 +33,7 @@
<!-- OSD -->
<control type="group" id="99">
<visible>!Player.HasGame</visible>
<visible>[Window.IsVisible(videoosd) | Window.IsVisible(seekbar) | Player.Paused | Player.ShowTime | [Window.IsVisible(volumebar) + !Player.Muted] | !String.IsEmpty(Window(home).Property(showvideoinfo))] + !Window.IsVisible(sliderdialog)</visible>
<visible>[Window.IsVisible(videoosd) | Window.IsVisible(seekbar) | Player.Paused | Player.ShowTime | [Window.IsVisible(volumebar) + !Player.Muted + !Skin.HasSetting(DefaultVolume)] | !String.IsEmpty(Window(home).Property(showvideoinfo))] + !Window.IsVisible(sliderdialog)</visible>
<animation effect="fade" start="0" end="100" time="0">Visible</animation>
<animation effect="fade" start="100" end="0" time="400" delay="2000">Hidden</animation>
<animation effect="fade" start="100" end="0" time="0" condition="Window.IsVisible(playerprocessinfo) | Window.IsVisible(pvrosdchannels) | Window.IsVisible(Teletext) | Window.IsVisible(sliderdialog) | Window.IsVisible(shutdownmenu) | Window.IsVisible(videobookmarks) | !String.IsEmpty(Window(home).Property(service.upnext.dialog)) | [$EXP[HideVideoOSD] + !$EXP[PlayerSeek] + !Window.IsVisible(videoosd)]">Conditional</animation>
Expand Down

0 comments on commit bfe7c99

Please sign in to comment.