Skip to content

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

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

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
Contributor

@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
Contributor

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.

Copy link
Collaborator

@skoeva skoeva left a comment

Choose a reason for hiding this comment

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

Hi! Are you still planning to continue work on this issue?

@k8s-triage-robot
Copy link

Unknown CLA label state. Rechecking for CLA labels.

Send feedback to sig-contributor-experience at kubernetes/community.

/check-cla
/easycla

Copy link

CLA Not Signed

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants