How to set outline colour of ToggleButton when selected?


#1

Hi,

In my plugin, I use ToggleButtons. Their appearance is customized by a LookAndFeel.

When one of the buttons is selected, a white outline appears around it, which I’d like to set to transparent. See the screenshot.

How can I set this colour? I tried this in the constructor of my LookAndFeel, but no luck:

setColour(Label::ColourIds::outlineWhenEditingColourId, Colours::black);

Thanks!


#2

The best way to figure this kind of thing out is just to debug paint method and see where it does the rendering, you’ll quickly spot the line that draws the outline and see where it gets its colour.


#3

Thanks for the reply jules. I haven’t managed to figure out how to debug an audio plugin yet, I’ll try to figure it out and give that a go.