Repository navigation
Add option to hide title bar in Zen Mode (even outside full screen mode) - #117149
Alex Hirsch (W4RH4WK) wants to merge 1 commit into
Conversation
This adds a new option `zenMode.hideTitleBar` to hide the title bar in Zen Mode, even when not in full screen mode. Currently this requires `window.menuBarVisibility` to be set to `toggle`. This comes from the issue that the menu bar focus / unfocus logic has no access to the Zen Mode active flag. Querying this flag is required to correctly make this work for `window.menuBarVisibility == 'classic'`.
|
Thanks you for this PR. |
| wasPanelVisible: false, | ||
| transitionDisposables: new DisposableStore(), | ||
| setNotificationsFilter: false, | ||
| alwaysHideTitleBar: false, |
There was a problem hiding this comment.
I would prefer if this was not a boolean but that it actualy held a value of the setting
|
I have looked into this, some thoughts:
This PR would ideally fix #44593 I am not 100% convinced we need this. What is the biggest benefit of adding this setting? |
I think it is same question of why we need zen mode.... For the zen that is ;) Besides that it allows users to keep being undistracted by the user interface (some users are, including myself). If you only want to see code, you really want to only see just the code. Edit: I also think it is a accessibility feature for people with ADHD or similiar Edit: |
You are correct, I did not track the usage across interface boundaries. I was just a bit surprised that my breakpoint did not trigger while testing. So false alarm here.
Of course I could just add something like for linux and windows. But it would complicate the documentation even further. I don't own a mac device so I can't test the behavior. I'd expect the menu bar to be unaffected by this change.
I am also skeptical whether this is in a state where it should be merged. But maybe a step in the right direction. #33607 requests a way to remove unnecessary clutter from the editor's top. I think this is a perfectly reasonable request. For many people it might be just aesthetical, others with low resolution screens might benefit from the additional space. For me, personally (#115570), I'd just like to hide the title bar without needing to put the editor in full screen mode --- maximizing the vertical space while maintaining the width. |
|
#33607 is a different request - that one want to hide the editor Title area (breadcrumbs, tabs etc...). This PR is hiding the VS Code Title area. So unrelated. So this PR only does the following: So not convinced yet. |
|
Alright. Do I understand #44593 correctly, that this PR implements the wanted functionality, but ties it to Zen mode instead of centered mode? Or am I missing something? |
|
This PR hides the VS Code top level title bar. |
|
I understand, thanks for clarifying. But this means #115570 is not a dup (?). |
|
Yeah it is not a dup. But still not convinced we need it. though I can reopen if you would like |
|
No need, but thanks. Let's see what other solutions come up in the future. I suspect there are quite a few people who'd like an option to cut down on the wasted vertical space in- and outside of Zen mode. |
|
No plans to merge at the moment, thus closing. Thanks anyways for your PR and I am sorry that we were unable to merge this. |
This adds a new option
zenMode.hideTitleBarto hide the title bar in Zen Mode, even when not in full screen mode.It works fine when
window.menuBarVisibilityset totoggle, but currently not forclassic. This happens because the menu bar focus / unfocus logic cannot query whether Zen Mode is currently active or not.vscode/src/vs/base/browser/ui/menu/menubar.ts
Line 749 in 11cd760
Furthermore, during debugging I discovered that some functions in
layout.tsrelated to the menu bar might be dead code, namelygetMenubarVisibilityandtoggleMenuBar.This PR is related to #33607, #115570, #117136.