VOOZH about

URL: https://phabricator.services.mozilla.com/D303238

⇱ ⚙ D303238 Bug 2035251 - Add shared toolkit pdf.svg icon and use for the save-as-pdf Quick Action. r?#desktop-theme-reviewers,calixte


Bug 2035251 - Add shared toolkit pdf.svg icon and use for the save-as-pdf Quick Action. r?#desktop-theme-reviewers,calixte
ClosedPublic

Authored by sfoster on Fri, May 29, 12:24 AM.
Referenced Files
F72912635: D303238.1781784126.diff
Wed, Jun 17, 12:02 PM
Unknown Object (File)
Wed, Jun 10, 7:28 AM
Unknown Object (File)
Wed, Jun 10, 6:27 AM
Unknown Object (File)
Sun, Jun 7, 1:21 PM
Unknown Object (File)
Sun, Jun 7, 12:27 PM
Unknown Object (File)
Sun, Jun 7, 5:23 AM
Unknown Object (File)
Sat, Jun 6, 8:27 PM
Unknown Object (File)
Sat, Jun 6, 8:27 PM
Subscribers
None

Diff Detail

Event Timeline

sfoster created this revision.
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Fri, May 29, 12:26 AM
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
sfoster updated this revision to Diff 1286194.
sfoster updated this revision to Diff 1286978.
sfoster retitled this revision from WIP: Bug 2035251 - Add shared toolkit pdf.svg icon, use it in pdfjs viewer.html. to Bug 2035251 - Add shared toolkit pdf.svg icon for use in pdfjs. r?#desktop-theme-reviewers.
sfoster added a reviewer: desktop-theme-reviewers.
Comment Actions

We had some discussion about where the icon should live. AIUI the plan is for it to be a shared icon, in toolkit. I put it in the desktop manifest for now. If gecko-view wants to use it, we can move it to the other manifest.

The pdf.js viewer.html changes to use the new icon will be a PR for that repo and get merged back once this icon has landed.

sfoster retitled this revision from Bug 2035251 - Add shared toolkit pdf.svg icon for use in pdfjs. r?#desktop-theme-reviewers to Bug 2035251 - Add shared toolkit pdf.svg icon for use in pdfjs. r?#desktop-theme-reviewers,calixte.
browser/base/content/test/static/browser_all_files_referenced.js
134 ↗(On Diff #1287048)

This does beg the question - if pdf.js is the only planned consumer for this icon, why is in toolkit/shared? From comments on the bug I gather we are thinking of this as a shared icon, but more details or plans for future uses in-tree might be good to help make this case.

sfoster retitled this revision from Bug 2035251 - Add shared toolkit pdf.svg icon for use in pdfjs. r?#desktop-theme-reviewers,calixte to Bug 2035251 - Add shared toolkit pdf.svg icon and use for the save-as-pdf Quick Action. r?#desktop-theme-reviewers,calixte.
Comment Actions

I redrew the icon a bit. The document shape was a bit uneven with different corner radii. I made the dog-ear filled with the stroke color (so, white on black) instead of being transparent. I obviously don't feel super strongly about the icon details but it is more legible now I think (we were losing the "f" in PDF) and we can easily iterate on the SVG itself - the main thing is to get it in-tree.

Comment Actions

Oh and made use of the new icon in the save-as-pdf quick action at Dao's suggestion, which is more appropriate there vs. the print icon we were using, and removes the need for the unused asset test exception.

This revision is now accepted and ready to land.Tue, Jun 2, 8:39 AM

Revision Contents

PathSize
browser/
components/
urlbar/
2 lines
toolkit/
themes/
shared/
1 line
icons/
8 lines
CommitTreeParentsAuthorSummaryDate
41d3cd66fd2ff074141b1d16Sam Foster
Bug 2035251 - Add shared toolkit pdf.svg icon and use for the save-as-pdf Quick… (Show More…)

Diff 1289942

browser/components/urlbar/QuickActionsLoaderDefault.sys.mjs

Loading...

toolkit/themes/shared/desktop-jar.inc.mn

Loading...

toolkit/themes/shared/icons/pdf.svg

Loading...