Separate out "dark settings" and "light settings", for themes that automatically switch between dark/light settings based on OS
ELLIOTTCABLE opened this issue · 0 comments
The built-in "System theme" FireFox theme ('Follow the system theme …'), along with a few others (such as Firefox Alpenglow include a dark_theme
manifest-entry; which is then used whenever the operating-system is set to "dark mode":
Unfortunately, since TST-Colored-Tabs only supports one set of colour settings, you're pretty much guaranteed for those settings to look terrible on whichever background they're not catering to:
There's not currently an API to explicitly determine whether the theme is "dark" mode or "light" mode; but you can use browser.theme.getCurrent()
to extract the current settings, and add a listener to browser.theme.onUpdated
to be notified whenever the system-theme changes; there's a good example of this in the firefox-audio-compressor
addon:
Further reading: https://bugzilla.mozilla.org/show_bug.cgi?id=1542044