Closed Bug 1399500 Opened 7 years ago Closed 7 years ago

[Windows 7 & 8] Default, Light and Dark Themes should be structurally consistent

Categories

(Firefox :: Theme, defect, P1)

57 Branch
All
Windows
defect

Tracking

()

VERIFIED FIXED
Firefox 58
Tracking Status
firefox57 --- verified
firefox58 --- verified

People

(Reporter: shorlander, Assigned: dao)

References

(Blocks 1 open bug)

Details

(Whiteboard: [reserve-photon-visual])

Attachments

(1 file)

The Default, Light and Dark themes should be structurally consistent. The only difference should be in color value.

Currently there is some shifting of elements between the default and the light / dark.

http://design.firefox.com/people/shorlander/photon/Mockups/windows-7.html
Status: NEW → ASSIGNED
Iteration: --- → 57.3 - Sep 19
Flags: qe-verify?
Whiteboard: [photon-visual] → [reserve-photon-visual]
This will need some more thorough investigation, but I don't think I can prioritize this over other stuff that's happening right now, so moving back to reserve backlog.
Assignee: jhofmann → nobody
Status: ASSIGNED → NEW
Iteration: 57.3 - Sep 19 → ---
Flags: qe-verify? → qe-verify+
Priority: P1 → P3
QA Contact: ovidiu.boca
Priority: P3 → P4
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Priority: P4 → P1
Attachment #8915049 - Flags: review?(jhofmann)
Comment on attachment 8915049 [details]
Bug 1399500 - Light and Dark themes should use the same toolbar borders as the default theme.

https://reviewboard.mozilla.org/r/186316/#review192286

::: browser/themes/windows/browser.css:82
(Diff revision 3)
>    display: none;
>  }
>  
>  :root[sizemode="normal"][chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar,
>  :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar {
> -  margin-top: var(--space-above-tabbar);
> +  padding-top: var(--space-above-tabbar);

Is this change required to solve the bug? I can't perceive differences in vertical spacing on Windows 7 between the themes.

This leads (afaict) to a regression on Mac where the tab line is 1px too thin. I haven't really figured out why yet, but I'd prefer to avoid doing that (also to avoid complexity for uplift) if this was just an optimization that we can simply drop from the patch.
Attachment #8915049 - Flags: review?(jhofmann) → review-
(In reply to Johann Hofmann [:johannh] from comment #5)
> Comment on attachment 8915049 [details]
> Bug 1399500 - Light and Dark themes should use the same toolbar borders as
> the default theme.
> 
> https://reviewboard.mozilla.org/r/186316/#review192286
> 
> ::: browser/themes/windows/browser.css:82
> (Diff revision 3)
> >    display: none;
> >  }
> >  
> >  :root[sizemode="normal"][chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar,
> >  :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar {
> > -  margin-top: var(--space-above-tabbar);
> > +  padding-top: var(--space-above-tabbar);
> 
> Is this change required to solve the bug? I can't perceive differences in
> vertical spacing on Windows 7 between the themes.
> 
> This leads (afaict) to a regression on Mac where the tab line is 1px too
> thin. I haven't really figured out why yet, but I'd prefer to avoid doing
> that (also to avoid complexity for uplift) if this was just an optimization
> that we can simply drop from the patch.

To be clear, the problem rather lies in the adjusted calculation in tabsintitlebar.js, not in the Windows-specific browser.css file.
(In reply to Johann Hofmann [:johannh] from comment #5)
> Comment on attachment 8915049 [details]
> Bug 1399500 - Light and Dark themes should use the same toolbar borders as
> the default theme.
> 
> https://reviewboard.mozilla.org/r/186316/#review192286
> 
> ::: browser/themes/windows/browser.css:82
> (Diff revision 3)
> >    display: none;
> >  }
> >  
> >  :root[sizemode="normal"][chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar,
> >  :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar {
> > -  margin-top: var(--space-above-tabbar);
> > +  padding-top: var(--space-above-tabbar);
> 
> Is this change required to solve the bug?

Yes. Margin is outside the toolbar's border box, padding is inside.
Comment on attachment 8915049 [details]
Bug 1399500 - Light and Dark themes should use the same toolbar borders as the default theme.

https://reviewboard.mozilla.org/r/186316/#review192306

Great, thank you!
Attachment #8915049 - Flags: review?(jhofmann) → review+
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/59aef3210d5e
Light and Dark themes should use the same toolbar borders as the default theme. r=johannh
https://hg.mozilla.org/mozilla-central/rev/59aef3210d5e
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
Comment on attachment 8915049 [details]
Bug 1399500 - Light and Dark themes should use the same toolbar borders as the default theme.

Approval Request Comment
[Feature/Bug causing the regression]: photon polish
[User impact if declined]: toolbars lack borders with the Light and Dark themes in non-maximized windows in Windows 7 and 8
[Is this code covered by automated tests?]: no
[Has the fix been verified in Nightly?]: not yet
[Needs manual test from QE? If yes, steps to reproduce]: 
[List of other uplifts needed for the feature/fix]: /
[Is the change risky?]: no
[Why is the change risky/not risky?]: basically just moving a few CSS borders around, and replacing the tabs toolbar's margin with padding on Windows (we already did this before on Mac)
[String changes made/needed]: /
Attachment #8915049 - Flags: approval-mozilla-beta?
OS: All → Windows
Summary: [Windows 7] Default, Light and Dark Themes should be structurally consistent → [Windows 7 & 8] Default, Light and Dark Themes should be structurally consistent
Comment on attachment 8915049 [details]
Bug 1399500 - Light and Dark themes should use the same toolbar borders as the default theme.

Photon polish, Beta57+
Attachment #8915049 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
https://hg.mozilla.org/releases/mozilla-beta/rev/55322dd4aa31
I verified this issue using Nightly 58.0a1 and Firefox Beta 57.0b9 on Windows 7 x64 and Windows 8 x64 with Build ID  	20171016185129.
I can confirm the fix.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: