I want to gather all the colors my application is using into one location so that 1) during development I can easily find and change the colors to find the best combinations to use for my applications, and 2) allow the user to change them via the ‘preferences’ when I get around to adding that feature later on.
Previous experience with ‘look and feels’ in other implementations hasn’t been pleasant, and I haven’t gotten around to investigating what it would take to do this using the juce look and feel - yet, I was hoping for a lighter weight temporary solution at this point. Unless of course the look and feel method is what you folks suggest…
I tried to add a Colour definition in a file I created called “Common.h” which looked like this:
static Colour myColor2(Colours::palegoldenrod);
But later, when I use the ‘myColor2’ - it’s black. If I do the same thing (non-static though) in a method definition it works just fine. So, I’m assuming the static colours haven’t been initialized when I do my own definition of myColor2. So I if wanted to just have a file that defined all my colours as variables, that I could later change programatically how would I do that and not end up with a bunch of ‘black’ colors!
How are the rest of you handling this situation?
Thanks in advance,