I am developping a simple color palette for a larger app. I draw squares which colours’ can change. These items are draggable, so that the user can reset them by dragging them to a bin. Everything works fine when I set the squares colours by using g.fillAll(appropriateColour).
However for design purposes I am willing to draw rounded rectanlges. No issue with the drawing itself whatsoever. But when I drag these rounded rectangle they leave a dark mark on the other coloured components. I am using a custom class for the buttons which inherits from juce::DrawableButton and juce::DragAndDropContainer.
I’ve tried (among other things) to fill the whole button clip region with a transparent colour and then filling a rounded rectangle over it, without success. I’ve also tried to reduce the clip region according to a path representing a rounded rectangle, also without success.
I’ll attach an image to show what is happening. Of course I can provide you with code samples if needed.