Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1803

use

$
0
0
I am attempting to rewrite parts of the Confluence skin for my aged father. He prefers to have visual cues on screen whenever possible.
I have run into a problem with using <selectedcolor> tags in a textbox in DialogPVRChannelsOSD.xml and in DialogPVRChannelGuide.xml as a whole, not just the text boxes.

DialogPVRChannelsOSD.xml
The code I am using is (edited for brevity):
Code:
<itemlayout height="120" width="410">
            .
            .
    <control type="label">
        <left>50</left>
        <top>25</top>
        <width>500</width>
        <height>20</height>
        <font>font12</font>
        <selectedcolor>selected</selectedcolor>
        <align>left</align>
        <aligny>center</aligny>
        <label>$INFO[ListItem.Title]</label>
    </control>
    <control type="label">
        <left>50</left>
        <top>44</top>
        <width>300</width>
        <height>20</height>
        <font>font10_title</font>
        <selectedcolor>selected</selectedcolor>
        <aligny>center</aligny>
        <label>$INFO[ListItem.StartTime] - $INFO[ListItem.EndTime]</label>
        <visible>ListItem.HasEpg</visible>
    </control>
            .
            .
    <control type="textbox">
        <left>50</left>
        <top>65</top>
        <width>600</width>
        <height>50</height>
        <font>font10</font>
        <align>justify</align>
        <selectedcolor>selected</selectedcolor>
        <autoscroll delay="10000" time="3000" repeat="6000">true</autoscroll>
        <label>$INFO[ListItem.Plot]</label>
    </control>
</itemlayout>

In the following image, the left side shows the current behaviour, and the right shows the preferred behaviour. [Apologies, but I am having trouble getting the image to appear below. It can be viewed by clicking on "image"]

Image

DialogPVRChannelGuide.xml
The code I am using is (again, edited for brevity):
Code:
<itemlayout height="85" width="410">
            .
            .
    <control type="label">
        <left>220</left>
        <top>0</top>
        <width>500</width>
        <height>30</height>
        <font>font12</font>
        <align>right</align>
        <aligny>center</aligny>
        <selectedcolor>selected</selectedcolor>
        <label>$INFO[ListItem.Label]</label>
    </control>
    <control type="textbox">
        <left>50</left>
        <top>30</top>
        <width>600</width>
        <height>50</height>
        <font>font10</font>
        <align>justify</align>
        <autoscroll delay="10000" time="3000" repeat="6000">true</autoscroll>
        <selectedcolor>selected</selectedcolor>
        <label>$INFO[ListItem.Plot]</label>
    </control>
</itemlayout>

Again, in the following image, the left side shows the current behaviour, and the right shows the preferred behaviour. [Again, apologies, but I am having trouble getting the image to appear below. It can be viewed by clicking on "image"]

Image


Is it intentional that <selectedcolor> does not apply to textboxes or DialogPVRChannelsOSD.xml? It would be useful if this could be changed, to avoid having to use ugly hacks in .xml files to replace the <selectedcolor> tags.

Viewing all articles
Browse latest Browse all 1803

Trending Articles