Closed Bug 1483332 Opened 7 years ago Closed 7 years ago

Port bug 1469287 to TB: Implement new shared tree styling

Categories

(Thunderbird :: Theme, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 63.0

People

(Reporter: Paenglab, Assigned: Paenglab)

References

Details

Attachments

(1 file)

Bug 1469287 removes some stylings, especially the Windows Explorer styling, and moves the twisties. Also the treeitem will be a lot taller (24px).
Attached patch treeStyles.patchSplinter Review
This fixes the styling on all platforms. To test you can download the m-c patch from https://hg.mozilla.org/integration/autoland/rev/c8c488989a62. Then no update of m-c is needed.
Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #9000048 - Flags: review?(jorgk)
Attachment #9000048 - Flags: review?(philipp)
Attachment #9000048 - Flags: review?(makemyday)
Comment on attachment 9000048 [details] [diff] [review] treeStyles.patch Review of attachment 9000048 [details] [diff] [review]: ----------------------------------------------------------------- Thanks, the calendar part looks good based on a codewise chack.
Attachment #9000048 - Flags: review?(philipp)
Attachment #9000048 - Flags: review?(makemyday)
Attachment #9000048 - Flags: review+
Comment on attachment 9000048 [details] [diff] [review] treeStyles.patch Review of attachment 9000048 [details] [diff] [review]: ----------------------------------------------------------------- That seems to restore the original look in the thread pane. However, I think applying https://hg.mozilla.org/integration/autoland/rev/c8c488989a62 is not enough, a clobber is needed since this removes files which are still in the dist directory. ::: mail/themes/windows/mail/messenger.css @@ +336,5 @@ > +treechildren::-moz-tree-indentation { > + width: 12px; > +} > + > +@media (-moz-windows-default-theme) { Why do we need this huge block of code that follows?
Attachment #9000048 - Flags: review?(jorgk) → review+
(In reply to Jorg K (GMT+2) from comment #3) > Comment on attachment 9000048 [details] [diff] [review] > treeStyles.patch > > Review of attachment 9000048 [details] [diff] [review]: > ----------------------------------------------------------------- > > That seems to restore the original look in the thread pane. However, I think > applying https://hg.mozilla.org/integration/autoland/rev/c8c488989a62 is not > enough, a clobber is needed since this removes files which are still in the > dist directory. > > ::: mail/themes/windows/mail/messenger.css > @@ +336,5 @@ > > +treechildren::-moz-tree-indentation { > > + width: 12px; > > +} > > + > > +@media (-moz-windows-default-theme) { > > Why do we need this huge block of code that follows? This is for the Windows Explorer styling. Without it would look like under Win7 Classic (blue background when selected).
Keywords: checkin-needed
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/d6e04b5f6706 Port bug 1469287 to TB: Implement new shared tree styling. r=jorgk,MakeMyDay
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 63.0
Pushed by mozilla@jorgk.com: https://hg.mozilla.org/comm-central/rev/6561d0242d8b Follow-up: Add calendar-widgets.css to allowed-dupes.mn. rs=bustage-fix
Comment on attachment 9000048 [details] [diff] [review] treeStyles.patch Review of attachment 9000048 [details] [diff] [review]: ----------------------------------------------------------------- ::: calendar/base/themes/common/widgets/calendar-widgets.css @@ +14,5 @@ > + -moz-appearance: none; > + -moz-box-align: center; > + border: none; > + width: 9px; /* The image's width is 9 pixels */ > + height: 9px; The image width is actually 8 pixels. ::: mail/themes/windows/mail/messenger.css @@ +317,5 @@ > + background-color: -moz-cellhighlight; > +} > + > +treechildren::-moz-tree-row(selected, focus) { > + background-color: Highlight; Not sure why you need those 3 rules. This is the styling that's already in toolkit. @@ +356,5 @@ > + --treechildren-hoverCurrentBorder: var(--treechildren-currentColor); > + --treechildren-hoverCurrentBackground: rgba(131,183,249,.16); > + --treechildren-hoverSelectedBorder: var(--treechildren-focusColor); > + --treechildren-hoverSelectedBackground: rgb(205,232,255); > + } I guess you don't want the Photon styling for TB, which is fine I guess. Anyway, note that you'll have a much harder time implementing the sidebar theme properties with the Windows styling (bug 1418602)
(In reply to Tim Nguyen :ntim from comment #7) > Comment on attachment 9000048 [details] [diff] [review] > treeStyles.patch > > Review of attachment 9000048 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: calendar/base/themes/common/widgets/calendar-widgets.css > @@ +14,5 @@ > > + -moz-appearance: none; > > + -moz-box-align: center; > > + border: none; > > + width: 9px; /* The image's width is 9 pixels */ > > + height: 9px; > > The image width is actually 8 pixels. Okay, that changed. Then I'll fix this in a new bug. > ::: mail/themes/windows/mail/messenger.css > @@ +317,5 @@ > > + background-color: -moz-cellhighlight; > > +} > > + > > +treechildren::-moz-tree-row(selected, focus) { > > + background-color: Highlight; > > Not sure why you need those 3 rules. This is the styling that's already in > toolkit. You re-introduced the Zebra-striping in Windows. Because our treechildren::-moz-tree-row(multicol, odd) has more specificy than the rules in tree.css we need to overrule them again. > @@ +356,5 @@ > > + --treechildren-hoverCurrentBorder: var(--treechildren-currentColor); > > + --treechildren-hoverCurrentBackground: rgba(131,183,249,.16); > > + --treechildren-hoverSelectedBorder: var(--treechildren-focusColor); > > + --treechildren-hoverSelectedBackground: rgb(205,232,255); > > + } > > I guess you don't want the Photon styling for TB, which is fine I guess. When Photon styling means the old Classic look on Windows, no. TB bases a lot more on trees and they should look like the standard (Windows Explorer).
(In reply to Richard Marti (:Paenglab) from comment #8) > You re-introduced the Zebra-striping in Windows. Because our > treechildren::-moz-tree-row(multicol, odd) has more specificy than the rules > in tree.css we need to overrule them again. Ah interesting, I'll check if we can remove it. This only affects the library window and about:config in Firefox right ? > > @@ +356,5 @@ > > > + --treechildren-hoverCurrentBorder: var(--treechildren-currentColor); > > > + --treechildren-hoverCurrentBackground: rgba(131,183,249,.16); > > > + --treechildren-hoverSelectedBorder: var(--treechildren-focusColor); > > > + --treechildren-hoverSelectedBackground: rgb(205,232,255); > > > + } > > > > I guess you don't want the Photon styling for TB, which is fine I guess. > > When Photon styling means the old Classic look on Windows, no. TB bases a > lot more on trees and they should look like the standard (Windows Explorer). Windows doesn't really have a well defined standard if you also consider UWP apps in the mix.
(In reply to Tim Nguyen :ntim from comment #9) > (In reply to Richard Marti (:Paenglab) from comment #8) > > You re-introduced the Zebra-striping in Windows. Because our > > treechildren::-moz-tree-row(multicol, odd) has more specificy than the rules > > in tree.css we need to overrule them again. > > Ah interesting, I'll check if we can remove it. This only affects the > library window and about:config in Firefox right ? about:config is styled through the in-content styles. The library doesn't have the striping. Not checked, but it must also have a styling somewhere. Also the treeitem height isn't 24px. > > > @@ +356,5 @@ > > > > + --treechildren-hoverCurrentBorder: var(--treechildren-currentColor); > > > > + --treechildren-hoverCurrentBackground: rgba(131,183,249,.16); > > > > + --treechildren-hoverSelectedBorder: var(--treechildren-focusColor); > > > > + --treechildren-hoverSelectedBackground: rgb(205,232,255); > > > > + } > > > > > > I guess you don't want the Photon styling for TB, which is fine I guess. > > > > When Photon styling means the old Classic look on Windows, no. TB bases a > > lot more on trees and they should look like the standard (Windows Explorer). > > Windows doesn't really have a well defined standard if you also consider UWP > apps in the mix. We had this styling for years now in toolkit. Removing it now would be a step backwards.
Depends on: 1486700
See Also: → 1807802
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: