Skip to content

Commit

Permalink
Add setting to auto hide video OSD after 10 seconds of inactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSiLVO committed Feb 28, 2020
1 parent 8064ba9 commit cf318f6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 16x9/DialogSeekBar.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<window>
<visible>String.IsEmpty(Window(Home).Property(Enable.ScreenshotMode)) + !Window.IsActive(visualisation) + !Player.HasGame + !Player.FrameAdvance + !Window.IsActive(pvrosdchannels) + ![Player.Paused + Window.IsActive(1134) + !Skin.HasSetting(Disable.Netflix.Pause)]</visible>
<visible>String.IsEmpty(Window(Home).Property(Enable.ScreenshotMode)) + !Window.IsActive(visualisation) + !Player.HasGame + !Player.FrameAdvance + !Window.IsActive(pvrosdchannels) + ![Player.Paused + Window.IsActive(1134) + !Skin.HasSetting(Disable.Netflix.Pause)] + [!System.IdleTime(10) + Skin.HasSetting(Enable.AutoHideOSD)]</visible>
<visible>VideoPlayer.IsFullscreen + [Window.IsActive(videoosd) | Window.IsActive(fullscreeninfo) | Player.ShowInfo | Player.Seeking | Player.DisplayAfterSeek | Player.Paused | Player.Forwarding | Player.Rewinding | Player.Caching] | [Window.IsActive(fullscreenvideo) + !String.IsEmpty(PVR.ChannelNumberInput)]</visible>
<zorder>1</zorder>
<controls>
Expand Down
2 changes: 1 addition & 1 deletion 16x9/VideoOSD.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<zorder>2</zorder>
<controls>
<control type="group">
<visible>!Window.IsVisible(SliderDialog)</visible>
<visible>!Window.IsVisible(SliderDialog) + [!System.IdleTime(10) + Skin.HasSetting(Enable.AutoHideOSD)]</visible>
<animation effect="fade" end="0" time="239.76">Hidden</animation>
<animation effect="fade" end="100" time="239.76" condition="Skin.HasSetting(VideoOSDOnTop)">WindowOpen</animation>
<animation effect="fade" end="0" time="239.76" condition="Skin.HasSetting(VideoOSDOnTop)">WindowClose</animation>
Expand Down
7 changes: 7 additions & 0 deletions 16x9/custom_1115_VideoOSDSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@
<onclick>Skin.ToggleSetting(Enable.AddonInfo)</onclick>
<selected>Skin.HasSetting(Enable.AddonInfo)</selected>
</control>
<control type="radiobutton" id="90211">
<width>1452</width>
<radioposx>1350</radioposx>
<label>$LOCALIZE[31577]</label>
<onclick>Skin.ToggleSetting(Enable.AutoHideOSD)</onclick>
<selected>Skin.HasSetting(Enable.AutoHideOSD)</selected>
</control>
</control>
<control type="scrollbar" id="6">
<left>1480</left>
Expand Down
6 changes: 5 additions & 1 deletion language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -2324,7 +2324,11 @@ msgctxt "#31576"
msgid "Reboot to Android"
msgstr ""

# empty strings from id 31577 to 31600
msgctxt "#31577"
msgid "Auto hide OSD after 10 seconds of inactivity"
msgstr ""

# empty strings from id 31578 to 31600
msgctxt "#31601"
msgid "Show discart in movie information"
msgstr ""
Expand Down

0 comments on commit cf318f6

Please sign in to comment.