Score:1

how to set lxqt dark theme preference for chromium

us flag

Links I've already visited and tried:

LxQt version: 0.14.1

Ubuntu version: 20.04.3

Some websites have automatic dark themes which are applied automatically based on the system color preference. Changing all the settings to dark in LxQt does not seem to help, and chromium's experimental forced dark mode is not the same thing as what prefers-color-scheme does. I would like to know if there is a way to send the value of prefers-color-scheme to chromium, or a way to set it inside chromium. The only way I've found is this, which is only temporarily emulated.

this is the related chromium issue, but I'd like a workaround to it that would make chrome do its work.

Thanks in advance for the help.

guiverc avatar
cn flag
LXQt themes will impact LXQt & Qt5 windows, but not GTK2 or GTK3 windows, and may not impact *snap* packages either. If you note the manual (https://manual.lubuntu.me/stable/3/3.2/3.2.2/appearance.html which is 21.10 as you didn't provide version; adjust for your release if not using 21.10) you can set themes for GTK2 & GTK3 windows too. Chrome has it's own themes & does not use LXQt's theme (likewise chromium which can differ too depending on release/package being used).
Razetime avatar
us flag
OS andLxqt info added. I also set my GTK3 theme before asking here. It did not change the sites. What I'm looking for is a system value which chrome will use to tell websites whether they should use dark color or not.
Score:1
cn flag

I had the same issue with chromium.

My lubuntu version: 21.10

First you should change GKT theme in lxqt settings:

Preferences > LXQT Settings > Appearance > Widget Style

Check "Set GTK themes" option and set both GTK-2 & GTK-3 to Arc-Dark. lxqt-settings

Then in chromium settings search for theme and select "use GTK+" button.

Result:

Chromium dark theme

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.