Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
option to disable pvr genre colours
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenpardon committed Mar 17, 2018
1 parent 17c3d81 commit e20b663
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
4 changes: 4 additions & 0 deletions language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,10 @@ msgctxt "#31391"
msgid "Library shortcuts position"
msgstr ""

msgctxt "#31392"
msgid "Disable genre colours in TV / Radio Guide"
msgstr ""



#: osd / player
Expand Down
22 changes: 18 additions & 4 deletions xml/SkinSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@
<onclick condition="System.HasAddon(script.skin.helper.colorpicker)">RunScript(script.skin.helper.colorpicker,action=colorpicker,skinstring=setcolor.main)</onclick>
<include>install_ColorPicker</include>
<include>radio_Settings</include>
<onup>9696</onup>
<onup>9697</onup>
<ondown>9660</ondown>
</control>
<control type="image">
Expand Down Expand Up @@ -828,7 +828,7 @@
<include>install_ColorPicker</include>
<include>radio_Settings</include>
<onup>9680</onup>
<ondown>9696</ondown>
<ondown>9693</ondown>
</control>
<control type="image">
<right>0</right>
Expand All @@ -840,6 +840,20 @@
</control>
</control>

<!-- PVR Genre colours-->
<control type="group" id="9693">
<height>90</height>
<control type="radiobutton" id="9694">
<label>$LOCALIZE[31392]</label>
<onleft>9001</onleft>
<onclick>Skin.ToggleSetting(genrecolours.disable)</onclick>
<selected>Skin.HasSetting(genrecolours.disable)</selected>
<include>radio_Settings</include>
<onup>9691</onup>
<ondown>9696</ondown>
</control>
</control>

<!-- Options -->
<control type="label">
<label>$LOCALIZE[33063]</label>
Expand All @@ -856,7 +870,7 @@
<onclick condition="System.HasAddon(script.skin.helper.service)">RunScript(script.skin.helper.service,action=colorthemes)</onclick>
<include>install_HelperService</include>
<include>radio_Settings</include>
<onup>9690</onup>
<onup>9693</onup>
<ondown>9697</ondown>
</control>
</control>
Expand All @@ -875,7 +889,7 @@
<onup>9696</onup>
<ondown>9650</ondown>
</control>
</control>
</control>
</control>


Expand Down
5 changes: 5 additions & 0 deletions xml/Variables.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,11 @@
<value>$INFO[ListItem.Genre]</value>
</variable>

<variable name="pvr:TimeBlock">
<value condition="!Skin.HasSetting(genrecolours.disable)">$INFO[ListItem.Property(GenreType),pvr/genres/,.png]</value>
<value></value>
</variable>


<!-- Setup -->
<variable name="setup:Accept">
Expand Down
4 changes: 2 additions & 2 deletions xml/ViewGuide.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<left>10</left>
<width>$PARAM[ItemTextureWidth]</width>
<height>$PARAM[ItemTextureHeight]</height>
<texture fallback="pvr/genres/0.png" border="5">$INFO[ListItem.Property(GenreType),pvr/genres/,.png]</texture>
<texture fallback="pvr/genres/0.png" border="5">$VAR[pvr:TimeBlock]</texture>
</control>
<control type="label" id="1">
<left>32</left>
Expand Down Expand Up @@ -180,7 +180,7 @@
<left>10</left>
<width>$PARAM[ItemTextureWidth]</width>
<height>$PARAM[ItemTextureHeight]</height>
<texture fallback="pvr/genres/0.png" border="5">$INFO[ListItem.Property(GenreType),pvr/genres/,.png]</texture>
<texture fallback="pvr/genres/0.png" border="5">$VAR[pvr:TimeBlock]</texture>
<bordertexture>colorize/100.png</bordertexture>
<bordersize>6</bordersize>
</control>
Expand Down

0 comments on commit e20b663

Please sign in to comment.