2018-12-28, 21:22
Hi,
I made some small changes to improve PVR's "DialogPVRChannelsOSD_Large" located in "IncludesOSDDialogs.xml"
The Large OSD looked nice but functionality was lacking, switching channel groups was tedious. The Small version of this OSD is better for switching channels, but lacks the real state to provide a bigger list. The goal is to give the large OSD the same user interaction the small OSD has.
BEFORE:
AFTER:
-Left and right now switch between channel groups (just like in small OSD)
-Top control (no longer needed) switched to label.
-Top left icon changed (was up arrow)
-Secondary color given to the current programming. Easier to differentiate the channel name from current programming.
Here is a pastebin of the modified IncludesOSDDialogs.xml, all original lines are commented.
https://pastebin.com/5Yk7KWWw
Code changes in IncludesOSDDialogs.xml, <include name="DialogPVRChannelsOSD_Large"> tag:
I made some small changes to improve PVR's "DialogPVRChannelsOSD_Large" located in "IncludesOSDDialogs.xml"
The Large OSD looked nice but functionality was lacking, switching channel groups was tedious. The Small version of this OSD is better for switching channels, but lacks the real state to provide a bigger list. The goal is to give the large OSD the same user interaction the small OSD has.
BEFORE:
AFTER:
-Left and right now switch between channel groups (just like in small OSD)
-Top control (no longer needed) switched to label.
-Top left icon changed (was up arrow)
-Secondary color given to the current programming. Easier to differentiate the channel name from current programming.
Here is a pastebin of the modified IncludesOSDDialogs.xml, all original lines are commented.
https://pastebin.com/5Yk7KWWw
Code changes in IncludesOSDDialogs.xml, <include name="DialogPVRChannelsOSD_Large"> tag:
Code:
<control type="label">
<!-- <control type="togglebutton" id="10"> -->
<top>10</top>
<left>5</left>
<width>1100</width>
<height>45</height>
<align>left</align>
<font>Reg26</font>
<!-- <onleft>11</onleft> -->
<!-- <onright>11</onright> -->
<!-- <ondown>11</ondown> -->
<!-- <onup>11</onup> -->
<textoffsetx>90</textoffsetx>
<label>$LOCALIZE[19023] - $INFO[VideoPlayer.ChannelGroup]</label>
<altlabel>$LOCALIZE[19024] - $INFO[MusicPlayer.ChannelGroup]</altlabel>
<textcolor>$INFO[Skin.String(OSDPrimaryTextColor)]</textcolor>
<shadowcolor>$INFO[Skin.String(OSDPrimaryTextShadowColor)]</shadowcolor>
<!-- <onclick>PreviousChannelGroup</onclick> -->
<texturenofocus></texturenofocus>
<usealttexture>pvr.IsPlayingRadio</usealttexture>
</control>
<control type="image">
<top>15</top>
<left>35</left>
<width>30</width>
<height>30</height>
<texture colordiffuse="$INFO[Skin.String(ViewDetailsTextColor)]">touchcontrols/menu.png</texture>
<!-- <texture colordiffuse="$INFO[Skin.String(ViewDetailsTextColor)]">home/home_up_arrow.png</texture> -->
</control>
Code:
<!--List ID=11-->
<control type="list" id="11">
<left>5</left>
<top>65</top>
<width>1100</width>
<height>840</height>
<onup>11</onup>
<ondown>11</ondown>
<!-- <onleft>10</onleft> -->
<onleft>PreviousChannelGroup</onleft>
<onright>60</onright>
<viewtype label="535">list</viewtype>
<pagecontrol>60</pagecontrol>
<scrolltime>200</scrolltime>
<itemlayout height="60" width="1100">
Code:
<!--Channel Name + Program Title-->
<control type="label">
<left>180</left>
<width>800</width>
<height>100%</height>
<font>Reg24</font>
<textcolor>$INFO[Skin.String(OSDPrimaryTextColor)]</textcolor>
<selectedcolor>$INFO[Skin.String(OSDPrimaryTextColor)]</selectedcolor>
<align>left</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label]: [color=$INFO[Skin.String(OSDSecondaryTextColor)]]$INFO[ListItem.Title][/color]</label>
<!-- <label>$INFO[ListItem.Label]: $INFO[ListItem.Title]</label> -->
</control>
Code:
<control type="scrollbar" id="60">
<top>65</top>
<left>1113</left>
<height>840</height>
<onup>60</onup>
<ondown>60</ondown>
<onleft>11</onleft>
<onright>NextChannelGroup</onright>
<!-- <onright>11</onright> -->
<animation effect="fade" start="0" end="100" time="400" condition="Control.HasFocus(60) | Skin.HasSetting(EnableTouchSupport) | Container(11).Scrolling | Skin.HasSetting(alwaysShowScrollbars)">Conditional</animation>
<animation effect="fade" start="100" end="0" time="400" condition="![Control.HasFocus(60) | Skin.HasSetting(EnableTouchSupport) | Container(11).Scrolling | Skin.HasSetting(alwaysShowScrollbars)]">Conditional</animation>
</control>