Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

About global dark mode

Post Reply
thefunkyjoint
Posts: 460
Joined: Thu Aug 10, 2017 12:40 pm

About global dark mode

Post by thefunkyjoint »

There is this setting to allow dark mode globally :

GlobalCEFApp.BlinkSettings := 'forceDarkModeEnabled';

Works nice , but is there a way to disable the dark mode for a specific site or TChromium instance ?
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: About global dark mode

Post by salvadordf »

It's only possible to set that property before the CEF initialization.

As far as I know, Chromium only has the "webkit.webprefs.force_dark_mode_enabled" browser preference to force the dark mode but it doesn't work. :?
thefunkyjoint
Posts: 460
Joined: Thu Aug 10, 2017 12:40 pm

Re: About global dark mode

Post by thefunkyjoint »

I understand. That would be nice as there are sites that already has a embedded dark mode and when you set dark mode globally, usually these kind of sites won't show correctly.
Post Reply