You are not logged in.

#1 2019-07-31 12:50:56

Bogart
Member
From: Madrid, Spain
Registered: 2005-06-22
Posts: 273

Chromium 76 still prefer light color scheme

Hi,

After updating to Chromium 76, the CSS media query prefers-dark-color-scheme is supported, but I can't set my Chromium browser to know that I prefer the dark color scheme. For example, there is this site where it can be tested:

https://davidwalsh.name/prefers-color-scheme

When you click on the "View demo" button it should open a tab where you can see if the media query is supported. Before Chromium 76 the text in that demo page appeared as red over pink background (not supported), but now it appears as black over white background (supported, but tells websites it prefers light color sceme instead of dark). I have Chromium set to use the GTK theme and I have GTK apps using the Breeze-dark style (I'm on KDE). This makes both Firefox and Chromium use the same dark color scheme as the rest of the KDE applications, and it also makes Firefox prefer the dark color scheme when websites offer the choice. Here is a screenshot showing both browsers side by side and the GTK settings in the KDE settings dialog:

https://imgur.com/a/LcSrE8K

As you can see, Firefox on the left shows the white text over the dark background, but Chromium to its right shows white background instead. More to the right are the settings I have in KDE for the GTK apps.

So my question is: does anyone know how to tell Chromium that it should prefer the dark color scheme whenever offered the choice? (BTW, I did try to set a dark theme in Chromium itself, but that doesn't work either).

Offline

#2 2019-08-04 13:20:58

Bogart
Member
From: Madrid, Spain
Registered: 2005-06-22
Posts: 273

Re: Chromium 76 still prefer light color scheme

The only way I found to tell Chromium to prefer the dark color scheme is to use "--force-dark-mode" flag when launching it.

Offline

#3 2020-09-24 14:08:24

wallena3
Member
Registered: 2017-06-21
Posts: 1

Re: Chromium 76 still prefer light color scheme

Same. Chromium 85.0.4183.121 still can not recognize media query of prefers-color-scheme in css.
Seems Chromium can not read environment variable in KDE

Last edited by wallena3 (2020-09-24 14:09:33)

Offline

Board footer

Powered by FluxBB