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 ?
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
- salvadordf
- Posts: 4086
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: About global dark mode
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.
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.
-
- Posts: 461
- Joined: Thu Aug 10, 2017 12:40 pm
Re: About global dark mode
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.