-
Notifications
You must be signed in to change notification settings - Fork 28.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
[themes] Dark mode detection silently breaks with settings sync #124572
Comments
Are you using settings sync? Could it be that we sync the theme setting from the other machine that has a different dark/light mode? |
I am, yes (I meant to mention that), but in my mind, the "automatically detect system color scheme" setting is the thing that's being synched, and each instance of the app should make appropriate choices based on that. Is there also a "light/dark mode" setting that's being synched? |
We have a setting "workbench.colorTheme" that contains the current theme. The problem you are seeing is that You can workaround this by setting this:
With the way we do this now, it'd difficult to fix that on our side. We currently permit the user to manually change the theme, even if does not match the current OS theme. The fix would be go away from the boolean settings |
Well, that's good to know. I'll go ahead and make that change and improve my life 0.7%. Thanks!
I definitely understand why this has existed historically, but I wonder how many people specifically want, e.g. a light-themed OS and a dark-themed editor. Anyway, your proposed fix seems like it would work out great for everyone. I have no idea how deprecated settings work with synching, but that's your problem, not mine :P |
Thanks for trying out the workaround! |
I'm going to add my long-standing problem to this issue, since "how If the OS switches from light to dark while Codespaces is stopped, it becomes a challenge to start the container again. As far as I can tell, my local While that's probably worth fixing, it would be an edge case if it weren't for the behaviour of |
This is also an issue with workspaces: when you create a workspace and add "window.autoDetectColorScheme": true,
"workbench.preferredDarkColorTheme": "Nord Deep",
"workbench.preferredLightColorTheme": "Ayu Light Bordered",
"workbench.colorTheme": "Nord Deep", … loading the workspace won't "update" the current dark/light status from the O.S.; instead, it will open in whatever state it was previously in when closed (because the I think the correct solution is something like #91231, or what @aeschli suggested above — having a way to 'set' the |
Issue Type: Bug
The majority of the time that I switch between my MacBook Pro and my Mac mini, the dark-mode detection is "wrong". As in, the switch is still enabled, but it hasn't actually worked correctly. If I go to settings and toggle it off and then back on, it'll correctly change the color scheme of VSCode to match the system.
VS Code version: Code 1.56.2 (Universal) (054a929, 2021-05-12T17:44:30.902Z)
OS version: Darwin arm64 20.4.0
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (9)
A/B Experiments
The text was updated successfully, but these errors were encountered: