Since you’ve been posting a lot about HaxeUI recently, I assume that this question is about that. However, please consider mentioning that you’re using HaxeUI every time that you start a new thread about it. There are other UI frameworks for Haxe too, so it’s good to be clear about which one you are using, for folks who may not have been following along closely.
I agree with josh, maybe prefix with “[haxeui]”? Dunno, anyway, the answer to the question is to create a theme, or, if you want to do it manually, and ad hoc, clear and reload the style sheets, something like:
Indeed, something like that would work. Keep in mind though that, really, a “theme” (in haxeui) is really just a word for a collection of styles and resources, so you could certainly restyle everything “on the fly”