Skip to content

Add option to hide title bar in Zen Mode (even outside full screen mode) - #117136

Closed
Alex Hirsch (W4RH4WK) wants to merge 1 commit into
microsoft:mainfrom
W4RH4WK:w4rh4wk/hide-title-bar-zen-mode
Closed

Alex Hirsch (W4RH4WK) wants to merge 1 commit into
microsoft:mainfrom
W4RH4WK:w4rh4wk/hide-title-bar-zen-mode

Conversation

@W4RH4WK

@W4RH4WK Alex Hirsch (W4RH4WK) commented Feb 20, 2021 •

Copy link
Copy Markdown
Contributor

This PR is related to #33607.

This PR fixes #115570.

Please revisit the config option description. I don't know whether my wording is appropriate here.

@ghost

Deleted user (ghost) commented Feb 20, 2021 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@W4RH4WK

Copy link
Copy Markdown
Contributor Author

Realized that with this implementation the menu bar cannot be toggled correctly anymore. Will try to fix and re-open this.

@W4RH4WK

Copy link
Copy Markdown
Contributor Author

After investigating the menu bar issue, I don't think this can be implemented fully without adding additional flags to other components.

It works fine when window.menuBarVisibility set to toggle, but currently not for `classic. This happens because the menu bar focus / unfocus logic cannot query whether Zen Mode is currently active or not.

} else if (this.options.visibility === 'classic' && browser.isFullscreen()) {

Furthermore, during debugging I discovered that some functions in layout.ts related to the menu bar might be dead code, namely getMenubarVisibility and toggleMenuBar.

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.

Option to hide titlebar in Zen mode without fullscreen

1 participant