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

Changing colours inside a list

$
0
0
Need a bit of help here !!

I can change the colours inside a list programatically (script embeds [COLOR=XXXXXXXX] into the listitem) but I want/need to be able to do it in the skin file instead.

So, my question is - How do I produce the same effect as this, just using XML ?

[Image: myproblem.png]

I need to be able to change the colour of each listitem, based on the contents of that listitem. Currently, my list is defined as follows and is populated by the script.
PHP Code:
<control type="list" id="12">    
            <
viewtype label="list_4">list</viewtype>
            <
left>1480</left>
            <
top>380</top>
            <
width>200</width>
            <
height>401</height>
            <
orientation>vertical</orientation>
            <
itemlayout height="30">
                <
control type="label">
                    <
left>68</left>
                    <
top>0</top>
                    <
width>150</width>
                    <
height>28</height>
                    <
font>font10</font>
                    <
aligny>center</aligny>
                    <
label>$INFO[ListItem.Label]</label>
                </
control>
            </
itemlayout>
            <
focusedlayout height="30">
                <
control type="label">
                    <
left>68</left>
                    <
top>0</top>
                    <
width>150</width>
                    <
height>28</height>
                    <
font>font10</font>
                    <
aligny>center</aligny>
                    <
label>$INFO[ListItem.Label]</label>
                </
control>
            </
focusedlayout>
        </
control

I have tried the small amount of skinning that I know, but to no avail unfortunately. All I have managed to do so far is either make that text disappear or make it all a uniform colour. Sad

Thanks for any help/advice anyone can give me........This skinning stuff really isn't easy !!

Viewing all articles
Browse latest Browse all 1818