Open
Bug 1422143
Opened 8 years ago
Updated 2 years ago
Allow browserAction and pageAction icons to blend in by using theme colors
Categories
(WebExtensions :: Frontend, enhancement, P3)
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: adrian+mozillabugzilla, Unassigned)
Details
Attachments
(1 file)
|
366 bytes,
application/json
|
Details |
When creating a browserAction/pageAction a webextension can provide an icon for it. In the case of browserAction it is also possible to provide 2 icons. One for light and one for dark themes.
Build-in toolbar and url bar icons change their color bases on the current theme. Icons added by webextensions can't do that and will therefor look out of place.
While supplying a dark and light theme version for a browserAction makes sure that the icon is always visible it will still look out of place, as build-in icons can have any color.
I would suggest implementing a way to have a monochrome browserAction/pageAction icon be recolored to the color supplied by the theme.
I don't know how build-in icons are handled, but I would guess, that this could be handled in the same/a similar way.
This feature could be enabled in the webextension manifest.json for example by adding a "recolor_icon: boolean" key to the browser_action and page_action sections or by making the "dark" and "light" keys inside the theme_icons section optional and adding a new "auto" key to it.
I'm not sure how multicolored icons should be handled. One option would be to not recolor them and throw a warning.
This would also help with bug #1408577, as when an icon is dragged into the tab bar it could use automatically switch to the color used by build-in icons in the tab bar.
| Reporter | ||
Updated•8 years ago
|
Component: Toolbars and Customization → WebExtensions: Frontend
Product: Firefox → Toolkit
Updated•8 years ago
|
Flags: needinfo?(mconca)
Comment 1•8 years ago
|
||
(In reply to Adrian [freundTech] from comment #0)
> Build-in toolbar and url bar icons change their color bases on the current
> theme.
Can you provide an example of a theme where this happens? I only see the built-in icons change between light and dark, not to different colors.
Flags: needinfo?(mconca) → needinfo?(git)
| Reporter | ||
Comment 2•8 years ago
|
||
Yes. I attached a manifest.json of a small demo theme I created.
The "textcolor" property controls the build-in toolbar icon color (unless the "toolbar_text" property exists. Then that one controls it).
The "toolbar_field_text" property controls the build-in pageAction icon color.
This is not limited to installed themes, but can also happen with the default theme on linux, where the font color of the GTK theme is used for both.
Flags: needinfo?(git)
Comment 3•8 years ago
|
||
We'd like to be able to use SVG for this but are stuck on platform support as per bug 1391980 and bug 1367042. We should probably just dupe to one of those. Or file a new bug. I'm really not sure what to do next to be honest.
Priority: -- → P3
Summary: Feature request: Allow webextension browserAction and pageAction icons to blend in by using theme colors → Allow browserAction and pageAction icons to blend in by using theme colors
Comment 4•7 years ago
|
||
Looks like duplicate of bug 1367042 to me.
Updated•7 years ago
|
Product: Toolkit → WebExtensions
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•