-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Allow VS-code to respect native titlebar decorations configuration on GNOME/Linux #176467
Comments
This would come from WCO on linux, right @deepak1556 |
@sbatten Can I please know what is WCO on linux? |
Window Controls Overlay, a feature of browsers and electron (our platform) which draws native window controls in a reserved area over our application. It allows you to get the same native features of window controls that we cannot implement in HTML/JS |
Let me +1 these. Also, take into account that sometimes not all controls are at the same side, e.g. on elementary OS/Pantheon the close button is on the left, the maximize button is on the right. |
This is needed, please implement. |
How do I move the title bar buttons to the left side? |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
+1 |
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
+1 |
I understand that The same behavior that VS Code already offers to Windows and OSX is expected to be offered to Linux as well. |
WCO has since landed for Linux: electron/electron#41769. Does this mean we will soonTM automatically see GTK-like buttons in VS Code on GNOME? |
👋 we now have a VS Code insiders build ready that can draw native window controls when custom title is enabled:
Can people report back how that feels? |
Thanks bpasero, this is a great improvement over what it used to be! It is using the correct images for the buttons now. I feel like it could be improved if it also listens to which buttons are enabled. On Fedora by default, the maximize and minimize buttons are hidden by default, as seen in the attachments of this comment. I am unsure how to detect this, I hope someone else can chip in on that. And to make it perfect, it would be great if it mirrored the default GNOME theme ("libadwaita") even more, by adding the circles around the images and having more padding. For this, see also the differences in the screenshots provided. I think the Human Interface Guidelines of GNOME could use used as a resource for this, but I don't have any further info on this so far. |
@2zqa I think this is an Electron issue. I asked in the Pull Request that landed support for Linux support of custom title bar styling, if they intend to fix this :) |
Although it is an improvement, the images seem far from being a solution to this problem. The maximize icon does not seem to be respected; the size appears to be different, and it causes the window borders to break the operating system's style. I hope there is no intention to consider this change as the solution to this issue, because it does not resolve it. |
Awesome! Now it uses the native buttons ❤️.
Also I have a question, is if it possible to detect the native position of the (min, max, close) buttons since linux can be tweaked to move them right or left of the window? |
Just wanted to add my 2 cents after noticing the new Please always keep this setting around to disable the native buttons when using the I personally think the ones VSCode adds look much better with the visual language of the application instead of the native ones provided through the WCO even if it means they don't align with my other windows. |
I made this script to move controls on the left side https://github.com/remigermain/vscode-controls-linux working with vscode-custom-css |
I tried using your script, but I wasn't successful. The buttons don't move. |
"I resolved the issue with the following commands: sudo chown -R $(whoami) "$(which code)"
sudo chown -R $(whoami) /usr/share/code After that, in VS Code: Press Type |
I tried this but now my vscode is showing me a github page inside vscode! Followed everything correctly as in vscode-controls-linux git link! |
I updated the readme , retry it ! |
Related on Stack Overflow: How can I make VS Code have the Minimize, Maximize, and Close window buttons on left hand side on Linux? |
Coming from #21 on vscode-adwaita, on GNOME Desktop environment (and on other distros as well) we can configure what titlebar decorations appear, viz Minimize, maximize buttons can appear or disappear via GNOME tweaks app.
VS-code doesn't support this by default, and for maximum cross-compatibility, we would like this feature to be customizable.
TLDR:
Attaching image of window decorations on VS code with

window.titleBarStyle
set tocustom
, GNOME files (Nautilus) on libadwaita 1.2x, GNOME 43.2 and Microsoft Edge browser (Version 109.0.1518.70 (Official build) (64-bit)) with GNOME tweaks, disabling maximise and minimize buttonsAnd with GNOME tweaks enabling Maximise/Minimize buttons:

The text was updated successfully, but these errors were encountered: