Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-hide menubar (can still be recalled by holding Alt key) #2730

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jonassvatos
Copy link

The default Electron menu bar is visible even when there is nothing custom, eg. settings or so on.
This PR effectively hides it, with the option to recall it again using Alt key.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 6, 2025
@jonassvatos jonassvatos changed the title auto-hide menubar (can still be recalled holding Alt key) auto-hide menubar (can still be recalled by holding Alt key) Jan 6, 2025
Copy link
Collaborator

@joaquimrocha joaquimrocha left a comment

Choose a reason for hiding this comment

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

Thanks @jonassvatos . I think this behavior may not be what all users want, so we should add a menu to set it.
Also, please check out the git commit guidelines: https://headlamp.dev/docs/latest/contributing#2-follow-commit-guidelines

@@ -1040,6 +1040,7 @@ function startElecron() {
contextIsolation: true,
preload: `${__dirname}/preload.js`,
},
autoHideMenuBar: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be a setting. I imagine not all users want this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants