Removing default application menu on Linux & Windows #2420
-
Hello, The application Design I'm working on does required a top application menu ad provided by default. I've found some discussion about how to remove it that partially worked, but I will have a nasty gray area at the top. Probably some padding added by default ? Here the source code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I believe the extra grey bar is a bug in the GTK implementation; it's adding a toolbar to the window even though there are no toolbar buttons, and the empty toolbar is a couple of pixels tall. The general feature you're looking for is #1870; I'm in the process of reworking this logic in #2244, which will add an official API for a "minimalist" main window without a menubar. In the meantime, you might be able to work around the bug on GTK by removing the toolbar from the layout - I haven't tried this, but something like |
Beta Was this translation helpful? Give feedback.
I believe the extra grey bar is a bug in the GTK implementation; it's adding a toolbar to the window even though there are no toolbar buttons, and the empty toolbar is a couple of pixels tall.
The general feature you're looking for is #1870; I'm in the process of reworking this logic in #2244, which will add an official API for a "minimalist" main window without a menubar.
In the meantime, you might be able to work around the bug on GTK by removing the toolbar from the layout - I haven't tried this, but something like
main_window._impl.layout.remove(main_window._impl.native_toolbar)
might work.