Simplenote-electron: Hide Menubar

Created on 11 Apr 2016  路  8Comments  路  Source: Automattic/simplenote-electron

Maybe this is Gnome-specific (Gnome desktop, Ubuntu), but I'd really love a way to hide the menu bar.

screenshot from 2016-04-10 21-25-11

FAQ [OS] linux [OS] windows feature request

Most helpful comment

Hey @drw158,

The menu can be hidden or auto-hidden (like in Slack or VS Code - you can press Alt to show/hide the menu).

Relevant methods:

  • win.setMenu(menu) - Sets the menu as the window鈥檚 menu bar, setting it to null will remove the menu bar.
  • win.setAutoHideMenuBar(hide) - Sets whether the window menu bar should hide itself automatically. Once set the menu bar will only show when users press the single Alt key.

Hope this helps to resolve the issue. The menu is a real eyesore on Windows and Linux.

All 8 comments

The File, Edit, etc. menu can't be hidden on Windows or Linux. Not sure how to solve that though.

Hey @drw158,

The menu can be hidden or auto-hidden (like in Slack or VS Code - you can press Alt to show/hide the menu).

Relevant methods:

  • win.setMenu(menu) - Sets the menu as the window鈥檚 menu bar, setting it to null will remove the menu bar.
  • win.setAutoHideMenuBar(hide) - Sets whether the window menu bar should hide itself automatically. Once set the menu bar will only show when users press the single Alt key.

Hope this helps to resolve the issue. The menu is a real eyesore on Windows and Linux.

The implementation of this in Atom can be followed in the following issue thread: https://github.com/atom/atom/issues/2914

The support for hiding the menu bar in electron apps was added with the following pull request: https://github.com/electron/electron/pull/558

Looks like someone already upgraded electron version in Simplenote and app menu is working as intended. At least on Ubuntu 17.10. I think that we may close this issue too.

@natanielcz It's not working for me, are you sure you're not using Unity and that it's just moved to the global menu? I still have no control of it in 1.1.0. This can't be that hard to implement, can it? Just a menu entry and keyboard event, right?

@nsrosenqvist : you are right. I don't know why I thought that it works. I'll take a look after 8th of December when I'll have more time for that.

This is taking way to long to add this feature. It shouldn't be that hard to fix it. (I'm using Linux)

PR #1207 addresses this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RCDCL5 picture RCDCL5  路  3Comments

guarani picture guarani  路  3Comments

rbreaves picture rbreaves  路  3Comments

moniuch picture moniuch  路  3Comments

abhijithvijayan picture abhijithvijayan  路  4Comments