Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

about:preferences now has "autohide menu" option #1630

Closed
wants to merge 9 commits into from
Closed

about:preferences now has "autohide menu" option #1630

wants to merge 9 commits into from

Conversation

bsclifton
Copy link
Member

@bsclifton bsclifton commented May 8, 2016

Updates to resolve #1524

  • Home button and this new setting pulled into an "Appearance settings" area of the general tab.
  • Change takes effect immediately

What is missing (will address in future PR):

  • context menu item in the bookmarks toolbar
  • default this new option to "false", but only for Windows users

@@ -120,3 +120,4 @@ zoom=Zoom
new=New
learnSpelling=Learn Spelling
ignoreSpelling=Ignore Spelling
autoHideMenuBar=Hide the menu bar
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Hide Menu Bar

@bbondy
Copy link
Member

bbondy commented May 9, 2016

This is looking good but the main thing I see before this can be merged in is that there should be no option for this at all for OS X (process.platform === 'darwin')

@bsclifton
Copy link
Member Author

Good catch, thanks 😃 I'll tweak this PR to hide the preference (and the context menu) on OS X

… the moment, setting only takes effect when launching browser (restart required on change).
…his first handler will show/hide the application menu.
…alse on Windows (will update in a following commit).
…failed to install when doing a fresh npm install.
…ing)

- Don't show "hide menu bar" in bookmarks toolbar context menu for OS X
- Always set autoHideMenuBar to true (when creating BrowserWindow) for OS X
@bsclifton
Copy link
Member Author

bsclifton commented May 11, 2016

Screenshots (NOTE: changes only show for Windows / Linux)

New option in preferences (default is SHOW on Windows)
2016-05-11 3

New context menu item when right clicking on bookmarks toolbar
2016-05-11 4

@bbondy
Copy link
Member

bbondy commented May 11, 2016

Manually merged because of a conflict, thanks!

@bbondy bbondy closed this May 11, 2016
@luixxiul
Copy link
Contributor

On Ubuntu Hide Menu Bar seems to hide nothing. Is it only for Windows?

@bbondy
Copy link
Member

bbondy commented May 11, 2016

I actually went back and forth about linux, does it not hide anything for all distros? I noticed the electron code only ignores OS X.

@luixxiul
Copy link
Contributor

Turning on that option does not hide the bookmark toolbar. Rather than that I'm not sure what it is supposed to do because it is unclear to me where the menu bar is.

@bsclifton
Copy link
Member Author

bsclifton commented May 11, 2016

@luixxiul interesting...

Is the menu in BrowserWindow a Windows only feature?

It's supposed to hide this menu (see picture- the file, edit, view, etc) which is toggleable by hitting alt (at least on Windows) and hidden by default (before this PR- which sets it to shown for Windows by default):
menu

@luixxiul
Copy link
Contributor

@bsclifton On Unity (Ubuntu) like this:

Not sure about other desktop environments.

@bsclifton
Copy link
Member Author

ah- it seems at least with Ubuntu/Unity, the menu ALWAYS shows

@bbondy
Copy link
Member

bbondy commented May 12, 2016

I'll post separate t fix for Ubuntu/Unity but probably not the highest priority. The option is respected and works properly in Dedbian with Gnome.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show menu by default on Windows and allow to turn it off
3 participants