Hi,
I’m trying to create a text button that doesn’t change colour when clicked. Here is my code. The purple colour gets darker once it has been clicked and released (or if you click the button, hold the mouse and slide away from the button then release).
I’ve tried searching but can’t anyone with the same problem.
Here’s my code
addAndMakeVisible(myButton);
myButton.setButtonText("Click Me!");
myButton.setColour(juce::TextButton::buttonColourId,juce::Colour::fromRGB (65,61,135));
myButton.setColour(juce::TextButton::buttonOnColourId,juce::Colour::fromRGB (65,61,135));
myButton.setColour(juce::TextButton::textColourOnId, juce::Colours::white);
myButton.setColour(juce::TextButton::textColourOffId, juce::Colours::white);
myButton.setClickingTogglesState(false);
myButton.setBounds(10, 10, 100, 30);