AlertWindow::showMessageBoxAsync

For some reason, a while back, AlertWindows started looking like this (below).

I’m not overriding the L+F methods, and I’ve checked all the colours and whatnot.

Looking at the Alertwindow class, it seems like the text is getting drawn twice:

Once at juce_AlertWindow.cpp, line 349, where it calls the look and feel drawAlertBox method, and then below with drawFittedText.

Do they look like this for you in the DemoRunner too? You can go to GUI >> Windows demo and click “Show Windows”

1 Like

Ah, nope, I see the issue.

I have a custom drawLabel in L+F, and its being used by the accessibleMessageLabel on the Alertwindow.

Normally, that object has textColour transparent black, but my L+F is drawing it with my own custom color Id.

Ok, done and done.