Hi everyone!
I’m a super beginner when it comes to JUCE and C++.
Could somebody give me some advice if I can color presets instead of hex values in struct (for readability)?
struct CustomDrumPads :juce::OwnedArray<juce::TextButton>
{
CustomDrumPads () :juce::OwnedArray<juce::TextButton> ()
{
enum juce::TextButton::ColourIds
{
buttonColourId = juce::Colours::yellow, //How can I use the colour preset here?
buttonOnColourId = 0xff852963,
textOffColourId = 0xfffffaf0,
textOnColourId = 0xff555555
};
}
};
Thank you for any reply!