Skip to content

Commit

Permalink
Add option to show lock icon for encrypted PVR channels
Browse files Browse the repository at this point in the history
strings.po:
- add new localize for new encrypted PVR channel setting (31174)

SkinSettings.xml:
- add new encrypted PVR channel setting

Variables.xml:
- change PVRChannelIcon and PVRChannelIconDialogOSD variables for new encrypted PVR channel setting

addon.xml:
- update changelog

Changelog.md:
- update changelog
  • Loading branch information
Ch1llb0 committed Oct 21, 2019
1 parent 01af3a2 commit d6a288d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Expand Up @@ -2,6 +2,7 @@

_New_
- add 21:9 and 4:3 modes
- add option to show lock icon for encrypted PVR channels (show encrypted channel icons by default)

_Improved_
- use OSMC busy spinner for widget loading
Expand Down
2 changes: 1 addition & 1 deletion addon.xml
Expand Up @@ -16,6 +16,6 @@
<icon>resources/icon.png</icon>
<fanart>resources/fanart.jpg</fanart>
</assets>
<news>[B]New[/B][CR]- add 21:9 and 4:3 modes[CR][CR][B]Improved[/B][CR]- use OSMC busy spinner for widget loading[CR]- add Disabled option to Adjust OSD on-time during video pause button[CR]- rework skin structure for Transiflex localization[CR]- improve widget icon animations[CR]- rework dialog animations to prevent bright transition[CR]- add heading to right list of home menu customization dialog[CR][CR][B]Fixed[/B][CR]- don't show parts of weather widget during widget loading[CR]- localize all labels[CR]- adjust home menu customization dialog to match behaviour of other settings windows</news>
<news>[B]New[/B][CR]- add 21:9 and 4:3 modes[CR]- add option to show lock icon for encrypted PVR channels (show encrypted channel icons by default)[CR][CR][B]Improved[/B][CR]- use OSMC busy spinner for widget loading[CR]- add Disabled option to Adjust OSD on-time during video pause button[CR]- rework skin structure for Transiflex localization[CR]- improve widget icon animations[CR]- rework dialog animations to prevent bright transition[CR]- add heading to right list of home menu customization dialog[CR][CR][B]Fixed[/B][CR]- don't show parts of weather widget during widget loading[CR]- localize all labels[CR]- adjust home menu customization dialog to match behaviour of other settings windows</news>
</extension>
</addon>
5 changes: 5 additions & 0 deletions language/resource.language.en_gb/strings.po
Expand Up @@ -834,3 +834,8 @@ msgstr ""
msgctxt "#31173"
msgid "Visibility"
msgstr ""

#: /SkinSettings.xml
msgctxt "#31174"
msgid "Show lock icon for encrypted PVR channels"
msgstr ""
8 changes: 8 additions & 0 deletions xml/SkinSettings.xml
Expand Up @@ -889,6 +889,14 @@
<onclick>Skin.ToggleSetting(SubMenuControls)</onclick>
<selected>Skin.HasSetting(SubMenuControls)</selected>
</control>
<!-- Show lock icon for encrypted PVR channels -->
<control type="radiobutton" id="612">
<include>SkinSettings_coords16</include>
<font>Font33</font>
<label>$LOCALIZE[31174]</label>
<onclick>Skin.ToggleSetting(PVRShowLock)</onclick>
<selected>Skin.HasSetting(PVRShowLock)</selected>
</control>
<!-- Kiosk mode -->
<control type="radiobutton" id="613">
<include>SkinSettings_coords16</include>
Expand Down
6 changes: 3 additions & 3 deletions xml/Variables.xml
Expand Up @@ -589,12 +589,12 @@
</variable>

<variable name="PVRChannelIcon">
<value condition="ListItem.IsEncrypted">pvr/encrypted.png</value>
<value condition="Skin.HasSetting(PVRShowLock) + ListItem.IsEncrypted">pvr/encrypted.png</value>
<value>$INFO[ListItem.Thumb]</value>
</variable>

<variable name="PVRChannelIconDialogOSD">
<value condition="Container(11).ListItem.IsEncrypted">pvr/encrypted.png</value>
<value condition="Skin.HasSetting(PVRShowLock) + Container(11).ListItem.IsEncrypted)">pvr/encrypted.png</value>
<value>$INFO[Container(11).ListItem.Thumb]</value>
</variable>

Expand Down

0 comments on commit d6a288d

Please sign in to comment.