Kodi Community Forum
Improve guide number layout - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Estuary (https://forum.kodi.tv/forumdisplay.php?fid=260)
---- Thread: Improve guide number layout (/showthread.php?tid=319078)



Improve guide number layout - edit4ever - 2017-07-29

I have a mix of over the air channels with subchannels and stream channels. In the current Estuary channel numbers will get cutoff in the guide if there are 2 characters on either side the subchannel decimal. And 4 channel numbers seem to get cutoff as well. On top of this - the alignment is center - which means the decimal point moves around based on the numbers before and after the decimal. This seems hard to read to me.

I've created a modification to the guide numbers that check for subchannel number and if there - instead of centering the number, it centers based on the deicmal point. I've also increased the channel number space slightly to accomodate the 4 digit channel numbers. The mod looks like this:

Image

And the code change in Includes_PVR.xml is this:

Code:
                    <control type="label">
                        <left>2</left>
                        <top>-2</top>
                        <width>110</width>
                        <height>60</height>
                        <font>font32_title</font>
                        <label>$INFO[ListItem.ChannelNumberLabel]</label>
                        <align>center</align>
                        <aligny>center</aligny>
                        <visible>String.IsEqual(ListItem.SubChannelNumber,0)</visible>
                    </control>
                    <control type="label">
                        <left>2</left>
                        <top>-2</top>
                        <width>60</width>
                        <height>60</height>
                        <font>font32_title</font>
                        <label>$INFO[ListItem.ChannelNumber]</label>
                        <align>right</align>
                        <aligny>center</aligny>
                        <visible>!String.IsEqual(ListItem.SubChannelNumber,0)</visible>
                    </control>
                    <control type="label">
                        <left>62</left>
                        <top>-2</top>
                        <width>50</width>
                        <height>60</height>
                        <font>font32_title</font>
                        <label>$INFO[ListItem.SubChannelNumber,.]</label>
                        <align>left</align>
                        <aligny>center</aligny>
                        <visible>!String.IsEqual(ListItem.SubChannelNumber,0)</visible>
                    </control>
                    <control type="label" id="1">
                        <left>110</left>
                        <top>-2</top>
                        <height>60</height>
                        <font>font12</font>
                        <label>$INFO[ListItem.ChannelName]</label>
                        <aligny>center</aligny>
                        <textoffsetx>10</textoffsetx>
                    </control>
                </channellayout>
                <focusedchannellayout height="62" width="$PARAM[channel_width]">
                    <control type="label">
                        <left>2</left>
                        <top>-2</top>
                        <width>110</width>
                        <height>60</height>
                        <font>font32_title</font>
                        <label>$INFO[ListItem.ChannelNumberLabel]</label>
                        <textcolor>button_focus</textcolor>
                        <align>center</align>
                        <aligny>center</aligny>
                        <visible>String.IsEqual(ListItem.SubChannelNumber,0)</visible>
                    </control>
                    <control type="label">
                        <left>2</left>
                        <top>-2</top>
                        <width>60</width>
                        <height>60</height>
                        <font>font32_title</font>
                        <label>$INFO[ListItem.ChannelNumber]</label>
                        <textcolor>button_focus</textcolor>
                        <align>right</align>
                        <aligny>center</aligny>
                        <visible>!String.IsEqual(ListItem.SubChannelNumber,0)</visible>
                    </control>
                    <control type="label">
                        <left>62</left>
                        <top>-2</top>
                        <width>50</width>
                        <height>60</height>
                        <font>font32_title</font>
                        <label>$INFO[ListItem.SubChannelNumber,.]</label>
                        <textcolor>button_focus</textcolor>
                        <align>left</align>
                        <aligny>center</aligny>
                        <visible>!String.IsEqual(ListItem.SubChannelNumber,0)</visible>
                    </control>
                    <control type="label" id="1">
                        <left>110</left>
                        <top>-2</top>
                        <height>60</height>
                        <font>font12</font>
                        <label>$INFO[ListItem.ChannelName]</label>
                        <textcolor>button_focus</textcolor>
                        <aligny>center</aligny>
                        <textoffsetx>10</textoffsetx>
                    </control>
                </focusedchannellayout>

Maybe this could be incorporated into the standard Estuary skin??


RE: Improve guide number layout - Kick4U - 2018-03-25

I'm surprised channel numbers more than 4 characters hasn't been addressed yet on this skin.

@kodi Team- Please increase the width of the channel numbers or decrease the font size when the channel numbers doesn't fit.


This forum uses Lukasz Tkacz MyBB addons.