nt1m / vivaldi-fox

An add-on that aims to add Vivaldi style toolbar colouring to the Firefox UI
https://addons.mozilla.org/en-US/firefox/addon/vivaldifox/
201 stars 21 forks source link

Spoof prefers-color-scheme (auto-theme sites that support it) #114

Open Madis0 opened 4 years ago

Madis0 commented 4 years ago

Prefers-color-scheme state light/dark should optionally be toggled by the VivaldiFox theme, as set by settings "default theme" and "night theme".

nt1m commented 4 years ago

It's not something I can do with the current API unfortunately.

There is a pref to do that however, I think it's ui.systemUsesDarkTheme, and you can set it to 1

4-FLOSS-Free-Libre-Open-Source-Software commented 2 years ago

There is a pref to do that however, I think it's ui.systemUsesDarkTheme, and you can set it to 1

ui.systemUsesDarkTheme | true -- | --
jscher2000 commented 1 year ago

FWIW, in Firefox 95+:

https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/browserSettings/overrideContentColorScheme