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)
Thunderbird
Theme
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 63.0
People
(Reporter: Paenglab, Assigned: Paenglab)
References
Details
Attachments
(1 file)
|
17.68 KB,
patch
|
jorgk-bmo
:
review+
MakeMyDay
:
review+
|
Details | Diff | Splinter Review |
Bug 1469287 removes some stylings, especially the Windows Explorer styling, and moves the twisties. Also the treeitem will be a lot taller (24px).
| Assignee | ||
Comment 1•7 years ago
|
||
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.
Updated•7 years ago
|
Attachment #9000048 -
Flags: review?(philipp)
Attachment #9000048 -
Flags: review?(makemyday)
Comment 2•7 years ago
|
||
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 3•7 years ago
|
||
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+
| Assignee | ||
Comment 4•7 years ago
|
||
(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).
| Assignee | ||
Updated•7 years ago
|
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
Updated•7 years ago
|
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 7•7 years ago
|
||
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)
| Assignee | ||
Comment 8•7 years ago
|
||
(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).
Comment 9•7 years ago
|
||
(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.
| Assignee | ||
Comment 10•7 years ago
|
||
(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.
You need to log in
before you can comment on or make changes to this bug.
Description
•