Open Bug 1809958 Opened 1 year ago Updated 7 months ago

Allow extensions to specify a different icon for dark themes

Categories

(WebExtensions :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: gregp, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [wecg][design-decision-approved][addons-jira])

Attachments

(1 file)

Attached image light_and_dark.png

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

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.

Blocks: 1575478
Whiteboard: [wecg]
Severity: -- → N/A
Priority: -- → P3
Whiteboard: [wecg] → [wecg][design-decision-needed]
See Also: → 1798088
Whiteboard: [wecg][design-decision-needed] → [wecg][design-decision-approved][addons-jira]
Duplicate of this bug: 1846225

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.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: