Closed
Bug 1404697
Opened 7 years ago
Closed 7 years ago
Use context-fill and context-fill-opacity for the toolbar icons
Categories
(Calendar :: General, enhancement)
Calendar
General
Tracking
(Not tracked)
RESOLVED
FIXED
6.0
People
(Reporter: Paenglab, Assigned: Paenglab)
Details
Attachments
(1 file, 3 obsolete files)
119.81 KB,
patch
|
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
Until now we use SVG icons with platform dependent filling and need a special set for old OSX versions. We also need special icons for the inverted set. With this patch we use the button text color to fill the icons and use for every icon his own file like FX is doing and had a performance win with this. With using a file per icon it's also easier to update the files when we use ntim's Photon icons.
Assignee | ||
Comment 1•7 years ago
|
||
Philipp, MakeMyDay, I put both in the r? as I don't know how your time is for the review. With this patch we use the button text color to fill the icons and use for every icon his own file like FX is doing and had a performance win with this. I'm still using the original icons except the print and attach icons I'm using from FX Photon set. To test this patch you need bug 1404696 applied first.
Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #8914051 -
Flags: review?(philipp)
Attachment #8914051 -
Flags: review?(makemyday)
Comment 2•7 years ago
|
||
Comment on attachment 8914051 [details] [diff] [review] CalendarIcons.patch Review of attachment 8914051 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the patch! I thought putting all icons in one file was a performance win as well? If this makes a future update easier I'm ok with it though.
Attachment #8914051 -
Flags: review?(philipp)
Attachment #8914051 -
Flags: review?(makemyday)
Attachment #8914051 -
Flags: review+
Assignee | ||
Comment 3•7 years ago
|
||
I thought it too. But FX isn't doing it this way and they made a lot of investigations speed wise.
Keywords: checkin-needed
Comment 4•7 years ago
|
||
Having more small files will degrade the startup performance if the profile is located on a network device or slow hard disks, but since the binary component has moved to omni.ja, we could change to a compressed extension if that impact is too bad. Iirc, you already filed a bug for that anyway, right?
Assignee | ||
Comment 5•7 years ago
|
||
Filed bug 1406499 for comment 4.
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/d20464aedc17 Calendar: Use context-fill and context-fill-opacity for the toolbar icons. r=philipp
Updated•7 years ago
|
Target Milestone: --- → 6.0
Comment 7•7 years ago
|
||
Backout: https://hg.mozilla.org/comm-central/rev/ef5549e9a1ea35ecccc28f2bdb78f026d9cef818
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 8•7 years ago
|
||
Sorry, forgot the allowed-dupes. Added the needed files. Try: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=692146bd51379b178648cb1dc433ee093e0796ca
Attachment #8914051 -
Attachment is obsolete: true
Attachment #8916223 -
Flags: review?(philipp)
Comment 9•7 years ago
|
||
Comment on attachment 8916223 [details] [diff] [review] CalendarIcons.patch Since the only file changed here is allowed-dupes.mn, I'm happy to do the review here.
Attachment #8916223 -
Flags: review?(philipp) → review?(jorgk)
Comment 10•7 years ago
|
||
I'm looking at the new duplicates here. Note that the file says: PLEASE DO NOT ADD MORE EXCEPTIONS TO THIS LIST You added address.svg, attach.svg, delete.svg, print.svg, save.svg, security.svg. I guess Calendar uses identical files. But why spelling.svg and tag.svg in mail and category.svg in Calendar? I assume there in not way to share lightning-toolbar.css and calendar-event-dialog.css? Also, at the end of the duplicate file I think you forgot to prepend "distribution/": https://bugzilla.mozilla.org/attachment.cgi?oldid=8914051&action=interdiff&newid=8916223&headers=1
Assignee | ||
Comment 11•7 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #10) > I'm looking at the new duplicates here. Note that the file says: > PLEASE DO NOT ADD MORE EXCEPTIONS TO THIS LIST > > You added address.svg, attach.svg, delete.svg, print.svg, save.svg, > security.svg. > I guess Calendar uses identical files. I could use the TB icons but they are needed to add to Lightning because SM (or 3dr party themes) doesn't have this icons and so the icons need to be shipped with the extension. > But why spelling.svg and tag.svg in mail and category.svg in Calendar? It's the same icon. But the different name shows better for what they are used. > I assume there in not way to share lightning-toolbar.css and > calendar-event-dialog.css? There are already common files but the rules in this files differ only in the third platform. I reordered the rules in calendar-event-dialog.css to be not dupes. For lightning-toolbar.css I cant do this as they are almost empty and there is nothing to shuffle. > Also, at the end of the duplicate file I think you forgot to prepend > "distribution/": > https://bugzilla.mozilla.org/attachment. > cgi?oldid=8914051&action=interdiff&newid=8916223&headers=1 Fixed
Attachment #8916223 -
Attachment is obsolete: true
Attachment #8916223 -
Flags: review?(jorgk)
Attachment #8916241 -
Flags: review?(jorgk)
Assignee | ||
Comment 12•7 years ago
|
||
Sorry for the bug spam. This is the correct patch.
Attachment #8916241 -
Attachment is obsolete: true
Attachment #8916241 -
Flags: review?(jorgk)
Attachment #8916243 -
Flags: review?(jorgk)
Comment 13•7 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #11) > I reordered the rules in calendar-event-dialog.css to be not dupes. For > lightning-toolbar.css I cant do this as they are almost empty and there is > nothing to shuffle. Sorry to be picky here but I don't like that hack. Either - make the files 100% equal and list them in the duplicates or - put a comment to make them unequal, like "Mac version", or something.
Assignee | ||
Comment 14•7 years ago
|
||
Comment on attachment 8916241 [details] [diff] [review] calendarIcons.patch Okay, patch without shuffling.
Attachment #8916241 -
Attachment is obsolete: false
Attachment #8916241 -
Flags: review?(jorgk)
Assignee | ||
Updated•7 years ago
|
Attachment #8916243 -
Attachment is obsolete: true
Attachment #8916243 -
Flags: review?(jorgk)
Comment 15•7 years ago
|
||
Comment on attachment 8916241 [details] [diff] [review] calendarIcons.patch Thanks for the patience. We've also have a try run for this, fixing the missing "distribution/" from the tried version doesn't make a difference.
Attachment #8916241 -
Flags: review?(jorgk) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 16•7 years ago
|
||
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/611f64379d91 Calendar: Use context-fill and context-fill-opacity for the toolbar icons. r=philipp,jorgk
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•