DocumentWindow ignores my custom LookAndFeel method

I’m just trying to change the colour of the title bar, so I created a custom look and feel class and I applied it to the main DocumentWindow of my app. Other overridden functions are working fine, such as drawScrollBar. I can see that it can change the colour there. But the drawDocumentTitleBar function in my look and feel class never runs at all. I’m not sure what I’m doing wrong.

This issue affects me on both Mac and PC and I am running the latest version of JUCE on both.

Are you using the native title bar or the juce one?
See TopLevelWindow::setUsingNativeTitleBar(bool);

I think the native one cannot be customised from the LookAndFeel at least.

Ah ok. I was using the native title bar.