Allow extensions to specify a different icon for dark themes
Categories
(WebExtensions :: General, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: gregp, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [wecg][design-decision-approved][addons-jira])
Attachments
(1 file)
31.75 KB,
image/png
|
Details |
As far as I know, the Unified Extensions Button is the first themed panel to make prominent use of icons
. Unfortunately, many extensions fail to provide icons that will have ideal contrast in both light and dark themes. To remedy this problem, I propose that we add something like a dark_icons
key to manifest.json
Comment 1•2 years ago
|
||
Extensions with a custom button can already specify theme_icons (introduced in bug 1329242).
There is not a way to specify an icon for dark themes, but a standardized way to do that would be welcome.
FWIW, there is a discussion on customizing the icons for dark themes at https://github.com/w3c/webextensions/issues/229 .
The discussion seems to have been narrowed towards extension action button icons instead of the extension icon itself, but I wouldn't mind revisiting the discussion to cover extension icons in general.
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Comment 2•2 years ago
|
||
We are going to fix this bug, see also: https://github.com/w3c/webextensions/issues/229#issuecomment-1418903935
Updated•2 years ago
|
Comment 4•1 year ago
|
||
https://github.com/w3c/webextensions/issues/229#issuecomment-1418903935
We (Mozilla) are going to add support for icons.dark and icons.light as well as action.default_icon.dark and action.default_icon.light
Please don't forget about page_action.
The interim solution (theme_icons) currently works with action but not page_action. Chrome removed page_action years ago, but it's still available on Firefox. My extension (IPvFoo) uses page_action when it can, because an icon in the address bar provides a better user experience... except for this light/dark issue.
Firefox should either maintain feature parity between action and page_action, or remove page_action entirely.
Use an SVG icon for the page action to inherit the fill color from the interface. See Multi-Account Containers for reference.
Comment 6•5 months ago
|
||
Just a suggestion that: mentions of "light" should refer to icons for a light theme, and "dark" should be for icons appropriate to a dark theme.
I just spent a day because in the manifest.json
theme_icons
dark
refers to icons suitable for a light themetheme_icons
light
refers to icons suitable for a dark theme
I found this very confusing, others seem to as well: Dark theme_icons are ignored in Manifest v3 extension
Description
•