Skip to content

Add option to hide title bar when not showing menu bar - #141847

Open
DorianRudolph wants to merge 1 commit into
microsoft:mainfrom
DorianRudolph:hide-titlebar
Open

DorianRudolph wants to merge 1 commit into
microsoft:mainfrom
DorianRudolph:hide-titlebar

Conversation

@DorianRudolph

@DorianRudolph DorianRudolph commented Jan 30, 2022 •

Copy link
Copy Markdown

This PR fixes #43154 by adding an option to hide the custom title bar when it is not needed to display the menu bar (i.e., for "toggle" and "compact" visibility settings).

The use case is Linux with tiling window manager (sway for me). Sway and other tiling window managers can draw their own title bars as seen below.

VSCode without title bar

The functionality of this PR is similar to #117149, though it is not concerned with zen mode.

@ghost

Deleted user (ghost) commented Jan 30, 2022 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@sbatten

Copy link
Copy Markdown
Member

DorianRudolph Why would one use the custom titlebar option only to draw a native titlebar?

@DorianRudolph

DorianRudolph commented Jan 31, 2022 •

Copy link
Copy Markdown
Author

Sorry if my explanation regarding tiling window managers was unclear.
Here is how my screen layout looks while working:

image

The small title/tab bars above the windows belong to the tiling window manager sway. They are unrelated to this PR and can also be disabled:

image

In the above screenshot you can compare VSCode with the title bar on the right vs. without on the left.

Without the title bar, I can get about 2 extra lines of code on screen, which on a smaller laptop can be significant.

VSCode with the native title bar enabled looks as follows:

image

But the native title bar has two downsides for me.
First, this displays the menu bar and context menu using GTK (following the OS theme), not directly in VSCode. If find the latter looks nicer and more coherent.
Second, now I don't have the option to hide the menu bar and use the toggle/compact menu bar settings.

@CleoMenezesJr

Copy link
Copy Markdown

Too bad this Merge was blocked. I don't understand why the problem of giving options to the user when it is deliberately possible.

@Titaniumtown

Titaniumtown (Titaniumtown) commented Mar 21, 2022 •

Copy link
Copy Markdown

Yea. sucks, this would be a very good feature :(

@robsontenorio

Copy link
Copy Markdown

Maybe some plugin can solve it?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Titlebar-less view for Linux

5 participants