skatt
06-08-2011 01:57:55
I'm trying to create a new skin for my project that has a dark theme. The EditBox requires light colored text but so far I have only managed to change the text colour inside my layouts. I added the following to the EditBoxSkin section of my Skin.xml file:
There was no effect.
Is there another place that I need to define the text color for this widget? I really need it to be defined in the skin because the project will be allowing multiple skins as options.
<BasisSkin type="EditText" offset="3 3 23 23" align="Stretch">
<State name="disabled" colour="0.5 0.5 0.5" shift="0"/>
<State name="normal" colour="1 1 1" shift="0"/>
<State name="highlighted" colour="1 1 1" shift="0"/>
<State name="pushed" colour="1 1 1" shift="1"/>
<State name="disabled_checked" colour="0.5 0.5 0.5" shift="0"/>
<State name="normal_checked" colour="1 1 1" shift="0"/>
<State name="highlighted_checked" colour="1 1 1" shift="0"/>
<State name="pushed_checked" colour="1 1 1" shift="1"/>
</BasisSkin>
<BasisSkin type="SimpleText" offset="3 3 23 23" align="Stretch">
<State name="disabled" colour="0.5 0.5 0.5" shift="0"/>
<State name="normal" colour="1 1 1" shift="0"/>
<State name="highlighted" colour="1 1 1" shift="0"/>
<State name="pushed" colour="1 1 1" shift="1"/>
<State name="disabled_checked" colour="0.5 0.5 0.5" shift="0"/>
<State name="normal_checked" colour="1 1 1" shift="0"/>
<State name="highlighted_checked" colour="1 1 1" shift="0"/>
<State name="pushed_checked" colour="1 1 1" shift="1"/>
</BasisSkin>
There was no effect.
Is there another place that I need to define the text color for this widget? I really need it to be defined in the skin because the project will be allowing multiple skins as options.