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


Messages In This Thread
Improve guide number layout - by edit4ever - 2017-07-29, 21:46
RE: Improve guide number layout - by Kick4U - 2018-03-25, 07:22
Logout Mark Read Team Forum Stats Members Help
Improve guide number layout0