Color constants for gui (and other Defold components)

I have now built a GUI making use of several shades of colors, if i want to change the text color i have to go in each gui file, each text item and change the color…same for the boxes etc. I don’t use textures here.

I would like something along the line of the color constants that you can define for an android application, constants that you can then use in your GUI objects

So i can change a value in one place and get the modification in each screen

Makes sense?

This can be done through code, but I guess you want something in the editor?

oh yeah…unless i want to do it dynamically, then code is the way of course

Please add editor feature requests in the editor2-issues tracker.

2 Likes