Closed Keith94 closed 5 years ago
I think this API might be better suited: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/theme :)
I think what we want is checking the "dark theme" pref + browserAction.setIcon .
@dos1 I tried to call theme.getCurrent()
and it returned me empty object with light, dark and even with custom theme. According to the API it returns theme.Theme
object only for extension-supplied theme. I tried to find something to detect dark/light/custom theme, but without any success.
I tested the fix e0c87c4: Looks good with the dark theme, but with "Space Fantasy" theme, it looks too dull.
The new toolbar button (a8760b1) appears too dark when using a dark theme in Firefox.
Apparently the API management.getAll() can help with determining the theme and selecting the proper icon.