Register custom ColourIds

Hi Juce Team,

Would be great if there was a proper way to register custom ColourIds like juce::Slider::textBoxOutlineColourId
without requiring to use hardcoded value that are prone to possible conflict/smashing.

Some constexpr int auto increment or something like that ?

Thanks !

6 Likes

or some compile time hashing of Class::enumName so you can serialize it and always have the same value

1 Like