Improve guide number layout
#1
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??
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
#2
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.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Improve guide number layout00