Port bug 1575905 Part 1: Show theme previews for built-in themes
Categories
(Thunderbird :: Theme, task)
Tracking
(Not tracked)
People
(Reporter: Paenglab, Assigned: Paenglab)
Details
Attachments
(1 file, 1 obsolete file)
2.34 KB,
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
Bug 1575905 adds a map in a const to specify the preview image in Add-ons manager.
We use other names for the light/dark theme and need somehow to add our theme names to this const to automatically show the preview.
We need this two themes to the map:
[
"thunderbird-compact-light@mozilla.org",
"chrome://mozapps/content/extensions/firefox-compact-light.svg",
],
[
"thunderbird-compact-dark@mozilla.org",
"chrome://mozapps/content/extensions/firefox-compact-dark.svg",
],
Geoff, is it somehow possible to add them to the const?
Comment 1•6 years ago
|
||
Oh, that's annoying. The Map is totally inaccessible because it's const. It should be possible to swap out getScreenshotUrlForAddon
the same way we did getAddonMessageInfo
, and short-circuit it for those two add-ons.
Assignee | ||
Comment 2•6 years ago
|
||
This patch shows the previews. I'm not sure if this is the right way with hijacking the function completely.
This is why I have set only f?. Should this be by accident the correct way don't hesitate to set r+ ;)
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Ah yes, this works :-)
Comment 5•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/83336f180281
Port bug 1575905 Part 1: Show theme previews for built-in themes. r=darktrojan
Updated•6 years ago
|
Description
•