Tooltip is Opaque window

I feel like I’m missing something here, but I see that the Tooltip is an opaque component, and that the default method to draw it uses a roundedRectangle.

As a result, you have some unpainted (usually black, sometimes yellow) areas that show up around the corners.

Wouldn’t it make more sense to set the tooltip as a transparent component?

1 Like

:+1:

This is exactly what I was thinking and I’m looking for a way to actually make the TooltipWindow transparent. I’m sure I’ll be back with a solution (eventually).

EDIT: To be fair it’s quite simple to make it transparent.
Wherever you instantiate the TooltipWindow (or at any point really) you could call

::juce::TooltipWindow m_tooltip_w = ::juce::TooltipWindow();
m_tooltip_w.setOpaque(false);
1 Like