10

screenshot of my settings, showing UI is dark-mode, and dark-mode is chosen:

settings ui

Here is a simple code snippet showing that dark mode is not set in the browser. This example is from Chrome, but dark mode does not work in Firefox either. VS Code also does not register that I have picked dark mode ui.

css browser example

Also, you can see that the browser does recognize a preferred color scheme, and it is explicitly set to "light".

quinn
  • 265

1 Answers1

11

Chrome has an open discussion about it: chrome issue. Electron —VScode uses, had similar issue but fixed now: electron issue. For VSCode and Firefox your issue may based upon versions. Updating may resolve it.

serhatteker
  • 126
  • 1
  • 3
  • 1
    thanks! confirmed firefox is working, thanks for the link about chrome – quinn Nov 28 '21 at 21:16
  • welcome! I was banging my head against wall while trying to understand for hours why my firefox respecting and chrome not my gtk theme :) – serhatteker Nov 29 '21 at 11:16