Closed Bug 1768363 Opened 3 years ago Closed 3 years ago

Permissions popup does not use correct context-fill for SVG icons in dark mode

Categories

(Thunderbird :: Add-Ons: General, defect)

Thunderbird 102
defect

Tracking

(thunderbird_esr91 unaffected)

RESOLVED FIXED
102 Branch
Tracking Status
thunderbird_esr91 --- unaffected

People

(Reporter: Thunderbird_Mail_DE, Assigned: Paenglab)

References

Details

Attachments

(5 files)

Tested in Thunderbird 101 Beta and Daily 2022-05-07.

When installing an addon with a SVG icon, the context-fill is not set correctly. The SVG icon is black on dark/black background, but it should be white.

And one more thing:
When in manifest.json the SVG is not as 32px icon defined (only 64px), the addon manager uses in its addon cards a PNG icon from the addon description on ATN instead of the SVG out of the XPI, which is defined in the manifest.json. That's really confusing, but I can reproduce this in developer tools.

(In reply to Alex Ihrig [:Thunderbird_Mail_DE] from comment #1)

And one more thing:
When in manifest.json the SVG is not as 32px icon defined (only 64px), the addon manager uses in its addon cards a PNG icon from the addon description on ATN instead of the SVG out of the XPI, which is defined in the manifest.json. That's really confusing, but I can reproduce this in developer tools.

Can you check if this happens on Firefox too? If yes, a dedicated bug for Firefox would be better as TB then will also be fixed because we use the same code.

Attached image Daily-popup.png

On Daily I get this. The used icon is jar:file:///.../abrufensenden_schaltflache-7.0-tb.xpi.xpi!/chrome/skin/getallmsg_fill_black_with_background.svg.

Maybe it's again the denied permission to apply -moz-context-properties: fill; on extensions.

Richard, please use the attached version of the addon for testing purposes.

The one (version 7.0) from ATN has defined an icon with white background as a workaround. This was necessary because of the missing context-fill in addon manager itself. But this (cards in addon manager) seems to be fixed in latest Beta and Dailies. Therefore I've been going forward and now using the context-fill SVG in version 8 of the addon.

Can you check if this happens on Firefox too?

Seems to be not possible. Installing from a file is blocked because of being not signed by AMO. And when debugging, the permissions popup is not shown.

I could move "forward" and use blue color for the main addon SVG like Dillinger does for its addons (see "Config Button"). But this would still be a workaround.

Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Target Milestone: --- → 102 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/7f6d500d7399
Set the fill color for the popup-notification-icon. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Blocks: 1768680
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: