bali33 Posted April 28, 2015 Share Posted April 28, 2015 Hi guys, I'd like to change a textfield color - so I tried : setStyle({fill:myColor}); The color changed as expected but my font and my font size changed too - I suspect it is because they are not specified in the setStyle argument. Is there a way to only change a text color without having to re-specify all other style properties ? Thank you Link to comment Share on other sites More sharing options...
MichaelD Posted April 28, 2015 Share Posted April 28, 2015 If you don't want to apply all the properties again you could try: text.addColor("#ff0000", 0); //red bdekk, Carlos, drhayes and 1 other 4 Link to comment Share on other sites More sharing options...
bali33 Posted April 28, 2015 Author Share Posted April 28, 2015 Thank you, I will test that ! Link to comment Share on other sites More sharing options...
Recommended Posts