RealyUniqueName / StablexUI

UI engine for Haxe OpenFL designed to give as much freedom as possible in customizing UI
http://ui.stablex.ru/doc
Other
337 stars 80 forks source link

Button label color #266

Closed frankhdz closed 7 years ago

frankhdz commented 7 years ago

This is not so much an issue but a question. How do you set the label color in a button? I have been looking for documentation on this but none seems to be available.

RealyUniqueName commented 7 years ago

Using xml:

<Button format-color="0xFF0000" text="'Hit me'"/>

Using code:

var btn = UIBuilder.create(Button, {
    format : { color : 0xFF0000 },
    text : "Hit me"
});
frankhdz commented 7 years ago

I found it in the docs just as you posted. Thanks!