Closed
Bug 908397
Opened 11 years ago
Closed 11 years ago
OS X - Make tree-item selected backgrounds consistent with the system style (Finder)
Categories
(Thunderbird :: Theme, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 26.0
People
(Reporter: jsbruner, Assigned: jsbruner)
Details
Attachments
(2 files, 3 obsolete files)
1.36 KB,
text/html
|
Details | |
7.78 KB,
patch
|
jsbruner
:
review+
jsbruner
:
ui-review+
|
Details | Diff | Splinter Review |
On OS X the selected item in the folder pane uses images (sidebar-item) to fill it. We could use CSS instead here. This would allow better scaling and allow better ways to customize its look.
Assignee | ||
Comment 1•11 years ago
|
||
Webpage demoing the idea
Assignee | ||
Updated•11 years ago
|
Summary: Replace folderpane selected image gradients with CSS ones. → OS X - Make tree-item selected backgrounds consistent with the system style (Finder)
Assignee | ||
Comment 2•11 years ago
|
||
This switches to CSS for all the selection colors and makes the colors consistent with Finder. It also removes sidebar-item.png from themes/osx/mail/icons/ and the jar.
Attachment #798322 -
Flags: ui-review?(richard.marti)
Attachment #798322 -
Flags: review?(richard.marti)
Comment 3•11 years ago
|
||
Josiah, after a quick view over the patch I saw two things you could change before my review: - Please change the -moz-linear-gradient to linear-gradient. - Please make the lines, where possible, not longer than 80 chars. Not tested on OS X, does the Finder with graphite theme not differenciate between selected and focus?
Assignee | ||
Comment 4•11 years ago
|
||
Fixed. Finder has only three colors, * Normal Selected * Graphite Selected * Window inactive I duplicated this as best as possible in this patch. However, the address book pane doesn't use window inactive and instead uses not selected, but that is because of a separate bug.
Attachment #798322 -
Attachment is obsolete: true
Attachment #798322 -
Flags: ui-review?(richard.marti)
Attachment #798322 -
Flags: review?(richard.marti)
Attachment #798663 -
Flags: ui-review?(richard.marti)
Attachment #798663 -
Flags: review?(richard.marti)
Comment 5•11 years ago
|
||
Comment on attachment 798663 [details] [diff] [review] Patch. Review of attachment 798663 [details] [diff] [review]: ----------------------------------------------------------------- linear-gradient(top,...) isn't valid, shows no gradient and is throwing errors in console. It needs either a 'to bottom' or nothing (then it automatically uses 'to bottom'). ui-r- because this patch shows no gradients. ::: mail/themes/osx/mail/addrbook/addressbook.css @@ +347,5 @@ > background-color: transparent; > } > > +#dirTree treechildren::-moz-tree-row(selected), > +#dirTree treechildren:-moz-window-inactive::-moz-tree-row(selected) { Please remove the line with :-moz-window-inactive as it doesn't work in AB. It can be readded with the bug you mentioned you want to file. @@ +348,5 @@ > } > > +#dirTree treechildren::-moz-tree-row(selected), > +#dirTree treechildren:-moz-window-inactive::-moz-tree-row(selected) { > + background: linear-gradient(top, #bbc5d7 6%, #c3cbe0 6%, #bdc6dd 7%, trailing space @@ +354,4 @@ > } > > #dirTree treechildren::-moz-tree-row(selected, focus) { > + background: linear-gradient(top, #5ea3df 6%, #73b8ea 6%, #6cafe5 7%, trailing space I think we don't need to differentiate between selected and focus and provide only one gradient like in mac-graphite-theme, chat and folderTree (and also Finder). @@ +359,5 @@ > } > > +#dirTree:-moz-system-metric(mac-graphite-theme) treechildren::-moz-tree-row(selected), > +#dirTree:-moz-system-metric(mac-graphite-theme) treechildren::-moz-tree-row(selected, focus) { > + background: linear-gradient(top, #7b8b9e 6%, #93a3b4 6%, #8fa0b1 7%, trailing space ::: mail/themes/osx/mail/chat.css @@ +231,5 @@ > } > } > > :-moz-any(imconv, imcontact, imgroup)[selected] { > + background: linear-gradient(top, #5ea3df 6%, #73b8ea 6%, #6cafe5 7%, trailing space @@ +237,4 @@ > color: HighlightText; > } > > #contactlistbox:focus > :-moz-any(imconv, imcontact, imgroup)[selected] { This selector isn't needed. The previous selector is enough and we differentiate no more like Finder. @@ +237,5 @@ > color: HighlightText; > } > > #contactlistbox:focus > :-moz-any(imconv, imcontact, imgroup)[selected] { > + background: linear-gradient(top, #5ea3df 6%, #73b8ea 6%, #6cafe5 7%, trailing space @@ +246,1 @@ > #contactlistbox:focus > :-moz-any(imconv, imcontact, imgroup)[selected]:-moz-system-metric(mac-graphite-theme) { Again the #contactlistbox:focus > ... isn't needed. @@ +246,2 @@ > #contactlistbox:focus > :-moz-any(imconv, imcontact, imgroup)[selected]:-moz-system-metric(mac-graphite-theme) { > + background: linear-gradient(top, #7b8b9e 6%, #93a3b4 6%, #8fa0b1 7%, trailing space @@ +249,4 @@ > } > > :-moz-any(imconv, imcontact, imgroup)[selected]:-moz-window-inactive { > + background: linear-gradient(top, #bbc5d7 6%, #c3cbe0 6%, #bdc6dd 7%, trailing space ::: mail/themes/osx/mail/mailWindow1.css @@ +79,5 @@ > } > > +#folderTree treechildren::-moz-tree-row(selected), > +#folderTree treechildren::-moz-tree-row(selected, focus) { > + background: linear-gradient(top, #5ea3df 6%, #73b8ea 6%, #6cafe5 7%, trailing space @@ +91,4 @@ > } > > #folderTree treechildren:-moz-window-inactive::-moz-tree-row(selected) { > + background: linear-gradient(top, #bbc5d7 6%, #c3cbe0 6%, #bdc6dd 7%, trailing space @@ +96,3 @@ > } > > +#folderTree treechildren::-moz-tree-cell-text(selected, focus), trailing space
Attachment #798663 -
Flags: ui-review?(richard.marti)
Attachment #798663 -
Flags: ui-review-
Attachment #798663 -
Flags: review?(richard.marti)
Attachment #798663 -
Flags: review-
Assignee | ||
Comment 6•11 years ago
|
||
So it looks like the "top" thing is only valid with the -moz- prefix. Fixed now. Resetting review flags.
Attachment #798663 -
Attachment is obsolete: true
Attachment #800169 -
Flags: ui-review?(richard.marti)
Attachment #800169 -
Flags: review?(richard.marti)
Comment 7•11 years ago
|
||
Comment on attachment 800169 [details] [diff] [review] Patch. Review of attachment 800169 [details] [diff] [review]: ----------------------------------------------------------------- Yeah, now it looks good.
Attachment #800169 -
Flags: ui-review?(richard.marti)
Attachment #800169 -
Flags: ui-review+
Attachment #800169 -
Flags: review?(richard.marti)
Attachment #800169 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 8•11 years ago
|
||
Adding commit message....
Attachment #800169 -
Attachment is obsolete: true
Attachment #800370 -
Flags: ui-review+
Attachment #800370 -
Flags: review+
Comment 9•11 years ago
|
||
https://hg.mozilla.org/comm-central/rev/740217e93916
Status: NEW → RESOLVED
Closed: 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 26.0
You need to log in
before you can comment on or make changes to this bug.
Description
•