You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VSCode not following dark theme on Fedora 36 #146804
I have installed VSCode on Fedora Workstation 36 Beta with the system theme set to Dark mode. However, VSCode does not use dark colours for the window title bar and sub-menus.
I took this screenshot on opening VSCode for the first time, and I haven't installed any extensions. The desktop environment is GNOME 42 and I haven't installed any extensions on it either.
I have cloned your repo, installed all dependencies and executed the start script. The window isn't following the system theme either.
Terminal output
> [email protected] start
> electron-forge start
✔ Checking your system
✔ Locating Application
✔ Preparing native dependencies
✔ Launching Application
shouldUseDarkColors: false, shouldUseHighContrastColors: false, shouldUseInvertedColorScheme: false
(node:9548) UnhandledPromiseRejectionWarning: TypeError: systemPreferences.getColor is not a function
at showInfo (/home/joel/Documents/GitHub/electron-theme-test/main.js:28:38)
at /home/joel/Documents/GitHub/electron-theme-test/main.js:35:3
(Use `electron --trace-warnings ...` to show where the warning was created)
(node:9548) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
shouldUseDarkColors: false, shouldUseHighContrastColors: false, shouldUseInvertedColorScheme: false
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[9580:0405/163223.323933:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[9580:0405/163229.989177:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[9580:0405/163232.232303:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[9580:0405/163237.803082:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
Activity
aeschli commentedon Apr 5, 2022
It depends if Electron supports dark/light mode for that distro.
To get more information
git clone https://github.com/aeschli/electron-theme-test.gitcd electron-theme-test,npm i && npm startjoeljosedev commentedon Apr 5, 2022
I have cloned your repo, installed all dependencies and executed the start script. The window isn't following the system theme either.
Terminal output
aeschli commentedon Apr 5, 2022
Ok, the
getColorcall is not supported, but that's not important. I pushed a change to remove that call.Please do a git pull and try again
cd electron-theme-test,git pull,npm i && npm startjoeljosedev commentedon Apr 6, 2022
Ok Martin Aeschlimann (@aeschli), I've pulled your commit, installed all dependencies and run the start script.
Terminal output
aeschli commentedon Apr 6, 2022
Thanks a lot. So yes, that confirms that Electron doesn't support OS themes on this platform.
I filed electron/electron#33635. Please subscribe to that issue and provide more information there if you have anything more.
vscode-triage-bot commentedon Apr 13, 2022
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
garyvdm commentedon May 11, 2022
I was able fix in the following way: