Skip to content
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

Support dark theme in Gnome #11979

Closed
andreyorst opened this issue Sep 13, 2016 · 13 comments
Closed

Support dark theme in Gnome #11979

andreyorst opened this issue Sep 13, 2016 · 13 comments
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Milestone

Comments

@andreyorst
Copy link

andreyorst commented Sep 13, 2016

  • VSCode Version: 1.5
  • OS Version: Linux

I do use light theme on my linux distribution, but in VScode i prefer standard dark theme for editor, so i desired to try to change a gtk theme for single window as i do often with several applications modifying their launchers and .desktop files, and had no success. As i figured out VScode doesn't use gtk for window decorations, so i tried xprop to change theme variant to dark. What i got is that window decoration changed to dark, but menu is still using old light style.

It would be great if VScode will start to use CSD (client side decorations) like in most native and not native gnome apps, so i request this feature too

Steps to Reproduce:
0. Use light gtk theme, that support dark variant, like Arc-GTK

  1. Type in terminal: xprop -f _GTK_THEME_VARIANT 8u -set _GTK_THEME_VARIANT "dark"
  2. Click VScode window
  3. Notice that decorations turned to dark, but menu is still light
  4. Cry.
@bpasero bpasero self-assigned this Sep 14, 2016
@bpasero bpasero changed the title Fix support for window dark theming, and possibly add CSD for gnome Support dark theme in Gnome Sep 14, 2016
@bpasero bpasero added feature-request Request for new features or functionality workbench labels Sep 14, 2016
@bpasero bpasero added this to the Backlog milestone Sep 14, 2016
@bpasero bpasero removed their assignment Sep 14, 2016
@jhasse
Copy link
Contributor

jhasse commented Sep 15, 2016

This would be a lot easier to fix when https://bugs.chromium.org/p/chromium/issues/detail?id=79722 is implemented. Especially client side decorations.

@bpasero
Copy link
Member

bpasero commented Nov 5, 2016

@andreyorst does it help if you add the following option to the window creation in https://github.com/Microsoft/vscode/blob/master/src/vs/code/electron-main/window.ts#L162

darkTheme: true

See here how to build and run out of sources: https://github.com/Microsoft/vscode/wiki/How-to-Contribute

@harry-cpp
Copy link

electron/electron#2927

@Tyriar
Copy link
Member

Tyriar commented May 5, 2017

Chrome v59 uses gtk3 which hits the stable channel in June https://bugs.chromium.org/p/chromium/issues/detail?id=79722#c110 https://www.chromium.org/developers/calendar

@MattSturgeon
Copy link

Any update? It seems all the upstream blockers are gone now, but I can still reproduce this issue:

image

This isn't so bad with "window.menuBarVisibility": "toggle", but it is still an issue.

@harry-cpp
Copy link

harry-cpp commented Jul 24, 2017

@MattSturgeon Wrong, electron/electron#9946

@bpasero bpasero added the menu label Sep 10, 2017
@jeremy447
Copy link

This one #30031 is the same kind of request. It will allow us to use a dark variant without the hacky xprop way.

@harry-cpp
Copy link

harry-cpp commented Sep 10, 2017

Starting with GNOME 3.26 the "Global Dark Theme" feature will get removed.

@jeremy447
Copy link

That's not a problem :
https://jeremy.bicha.net/2017/08/29/gnome-tweaks-3-25-91/#comment-384

@harry-cpp
Copy link

I did mention it because of that, #30031 and this request are different, this can be closed while #30031 should be the one left open.

@MattSturgeon
Copy link

MattSturgeon commented Sep 10, 2017 via email

@bpasero
Copy link
Member

bpasero commented Nov 15, 2017

#16363

@bpasero bpasero closed this as completed Nov 15, 2017
@bpasero bpasero added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 15, 2017
@jhasse
Copy link
Contributor

jhasse commented Nov 15, 2017

Surely GLOBAL Dark Theme being removed has no impact on either issue. You can still set Dark Theme on a per-app basis.

Even a global dark theme is still supported, simply by selecting a dark theme.

@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

7 participants