I'm making a Cocoa app, with a hidden unified NSToolbar and Titlebar. I've done so by adding a toolbar in the Window Controller and setting all the options to make this invisible and keep the 3 colored buttons. It works great in a normal window, but if I put this window in fullscreen, it shows an empty Toolbar at the top.
How to make this toolbar also transparent in fullscreen?
It can be possible as it is how it works in the new Mac AppStore in macOS Mojave (there is a hidden toolbar which is still hidden in fullscreen and only appear when the mouse is put at the top of the screen).
Bonus: I have enabled isMovableByWindowBackgroundable
but is there an option to toggle the "maximize" action while double clicking on the window background like it normally works for titlebar?
Here's pictures: