2015-05-03, 09:47
I'm using the following variable to allow users to customize the highlight color:
This works well throughout the skin with the following code, even when used in an itemlayout/focusedlayout (though I thought skin strings couldn't be used in itemlayouts).
When I try to use the same variable with a [COLOR] tag however, it doesn't work inside an itemlayout/focusedlayout (it works fine elsewhere though). For example:
Any ideas why it works in one case (<textcolor>) but not the other ([COLOR]) inside itemlayout/focusedlayout? Any chance of getting this variable to work with [COLOR] tags inside itemlayout?
Thanks!
Code:
<variable name="ColorHighlightVar">
<value condition="Skin.HasSetting(ColorCustomizer.Enabled) + !IsEmpty(Skin.String(highlightcolor.name))">$INFO[Skin.String(highlightcolor.name)]</value>
<value>highlight</value>
</variable>
This works well throughout the skin with the following code, even when used in an itemlayout/focusedlayout (though I thought skin strings couldn't be used in itemlayouts).
Code:
<textcolor>$VAR[ColorHighlightVar]</textcolor>
When I try to use the same variable with a [COLOR] tag however, it doesn't work inside an itemlayout/focusedlayout (it works fine elsewhere though). For example:
Code:
[COLOR $VAR[ColorHighlightVar]]...[/COLOR]
Any ideas why it works in one case (<textcolor>) but not the other ([COLOR]) inside itemlayout/focusedlayout? Any chance of getting this variable to work with [COLOR] tags inside itemlayout?
Thanks!