DrawableButton without blue highlighting?

I have a DrawableButton that uses two images for display and I have setClickingTogglesState(true).

How do I get rid of that light blue highlighting? It's not there when setClickingTogglesState (false). Obviously it's trying to show when it's on, but my images do that just fine and I don't need the default highlighting or background or whatever it is.




From reading the documentation, I would think that you could just use setColour() using TextButton::buttonOnColourId and make the color completely transparent (I think with an alpha of 0).

interested to know if that works - I'd like to be able to get rid of all the focus boxes too...

Thanks for the reply.

I stumbled upon another solution: I just added an empty paint() function that worked.

Hope that helps you.