Score:1

Why has Google Chrome switched to dark mode?

al flag

So I am using Ubuntu 22.04.2 LTS and Chrome 114 which appears to have just updated. My Chrome crashed so I restarted it and not hey presto its defaulted to a Dark Mode. I've tried to go into Settings > Appearance > GTK Button but no affect and even Google search pages are now in black/dark.

I'd quite like to revert it back and wondering what I can do about it?

cn flag
Is you desktop dark? If so and you switch to light does chrome do that too? I am still on 113 btw. and on 23.04 so ... this might not be an Ubuntu issue and more a Chrome issue.
Antony avatar
al flag
Yes I think so - so perhaps Chrome is now using my Dark mode and assuming I want that there too but annoying - as I dont!
cn flag
install a white theme ;) I have all black but need white browser for bank barcode scan so I use a white theme.
Patrick Gregorio avatar
eg flag
I'm having the same problem - I like Ubuntu to be on dark mode but I like to keep my browsers in light mode. I tried installing a light theme but when I open my developer tools, they are in dark mode still and even the tooltips and context menus are still all in dark mode. I couldn't find any settings to ignore the system settings.
Score:1
ma flag

Since Chrome 114+, Chrome started to properly respect 'dark mode' in linux (https://chromiumdash.appspot.com/commit/1acb960204281157ac3a583a07ce07e2754ea42b).

What I've done to get it back to a light theme, while preserving my dark theme in the desktop environment, using dconf editor and set /org/gnome/desktop/interface/color-scheme to "prefer-light". Hope this helps you in your case!

Score:0
cn flag

This should work. Tested on Ubuntu 22.04

gsettings set org.gnome.desktop.interface color-scheme prefer-light

muru avatar
us flag
`gsettings` is just an alternate way of editing the dconf database as suggested in https://askubuntu.com/a/1471996/158442
Artem Dumanov avatar
cn flag
You should've known that not everybody has that file or have the will to keep it. So this one-liner is okay unless you know any cons.
muru avatar
us flag
What file? Will to keep what? I'm saying that your oneliner is just an alternate command to do something that has already been suggested (change dconf setting X to Y - which you can do using the dconf editor gui, the `dconf` command or the `gsettings` command). Obviously there's no point to having a separate answer for each way of doing that. You should be at the least upvoting the existing answer and possibly commenting or editing it instead of posting a new one confirming their answer.
Artem Dumanov avatar
cn flag
The previous answer doesn't describe a definite command to do that with "dconf". Only an idea. I come here for the answer "run that command" and I figured out a concrete step on how to achieve the goal that I shared and it works. I see no point in disliking that answer, but that's up to you how to perceive my answer.
muru avatar
us flag
"Dconf editor" is a GUI application to edit dconf settings. It's describing the exact thing to do, not just "an idea".
Artem Dumanov avatar
cn flag
I don't have a dconf in my apps search. Then the previous answer must've been more specific on actions.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.