Google Chrome System Dark Mode
10,299
Solution 1
You must switch Google Chrome to GTK theme (Settings->Appearance->Themes) for make this works.
Solution 2
Run
sudo nano ~/.config/gtk-3.0/settings.ini
and set
gtk-application-prefer-dark-theme
to 1
.
Related videos on Youtube
Author by
Admin
Updated on September 18, 2022Comments
-
Admin over 1 year
When I switch Ubuntu 20.04 to dark mode (via gnome-tweak-tool > appearance > Shell > Yaru-dark and the Appearance section of the system app) Google Chrome doesn't seem to think that my OS/System Preference is for a dark theme, as evidenced by the chrome settings section and dev tools being light-themed. My dev tools are set to use a theme based on system preference. I know the enable-force-dark experimental setting exists, but I don't want chrome to try and convert web pages to a dark theme by itself. Is there some sort of setting in dconf or elsewhere that will tell Google Chrome to render it's internal pages with a dark theme?
-
Admin over 3 yearsYou can set Chrome to always start on dark mode by changing it's desktop entry file. See this answer to learn how to do this: askubuntu.com/a/1290268/1025464
-
-
Thomas Guyot-Sionnest over 2 yearsThis is not sufficient to make chrome use the websites' dark themes. There is an open issue in Linux: bugs.chromium.org/p/chromium/issues/detail?id=998903. The only way to set dark mode properly as of Chrome 94.0 is to use the
--force-dark-mode
command line switch. -
Ssh-uunen over 2 yearsdid not worked for me on Pop 21.04 hirsute & GNOME 3.38.3
-
Admin almost 2 yearsCheck if your
$XDG_CONFIG_HOME
variable is set. If yes, use the path$XDG_CONFIG_HOME/gtk-3.0/settings.ini
as mentioned in the configuration section of the wiki