2016-03-30, 21:55
Hello,
I have a problem, I want to change color of radiobutton according to the theme color
I have tried this :
And my variable is :
I'm on Krypton and this is return nothing.
Any idea ?
I have a problem, I want to change color of radiobutton according to the theme color
I have tried this :
Code:
<default type="radiobutton">
<width>300</width>
<height>42</height>
<radiowidth>120</radiowidth>
<radioheight>76</radioheight>
<textureradioonfocus>$VAR[Radiobutton]</textureradioonfocus>
<textureradioonnofocus>$VAR[Radiobutton]</textureradioonnofocus>
<textureradioofffocus>buttons/radio-button-off.png</textureradioofffocus>
<textureradiooffnofocus>buttons/radio-button-off.png</textureradiooffnofocus>
<textureradioondisabled colordiffuse="disabled">$VAR[Radiobutton]</textureradioondisabled>
<textureradiooffdisabled colordiffuse="disabled">buttons/radio-button-off.png</textureradiooffdisabled>
<texturefocus border="40" colordiffuse="button_focus">buttons/button-theme-fo.png</texturefocus>
<texturenofocus border="40">buttons/button-nofo.png</texturenofocus>
<font>font13</font>
<textcolor>white</textcolor>
<disabledcolor>disabled</disabledcolor>
<textoffsetx>7</textoffsetx>
<align>left</align>
<aligny>center</aligny>
<pulseonselect>no</pulseonselect>
</default>
And my variable is :
Code:
<variable name="Radiobutton">
<value condition="String.IsEqual(Skin.CurrentColourTheme,pink)">buttons/radio-button-on-pink.png</value>
<value condition="String.IsEqual(Skin.CurrentColourTheme,grey)">buttons/radio-button-on-grey.png</value>
<value condition="String.IsEqual(Skin.CurrentColourTheme,green)">buttons/radio-button-on-green.png</value>
<value condition="String.IsEqual(Skin.CurrentColourTheme,red)">buttons/radio-button-on-red.png</value>
<value condition="String.IsEqual(Skin.CurrentColourTheme,orange)">buttons/radio-button-on-orange.png</value>
<value>buttons/radio-button-on.png</value>
</variable>
I'm on Krypton and this is return nothing.
Any idea ?