Closed
Bug 520644
Opened 15 years ago
Closed 15 years ago
Switching to a lightweight theme changes border widths
Categories
(Firefox :: Theme, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | beta3-fixed |
People
(Reporter: mstange, Assigned: mstange)
References
Details
Attachments
(1 file, 1 obsolete file)
764 bytes,
patch
|
johnath
:
approval1.9.2+
|
Details | Diff | Splinter Review |
-moz-appearance: statusbar has 1px border-top-width.
Attachment #404704 -
Flags: review?(dao)
Comment 1•15 years ago
|
||
> Switching to a lightweight theme changes border widths
Why is that a problem?
Assignee | ||
Comment 2•15 years ago
|
||
Because it causes the viewport's position and size to change and makes the transition to a lightweight theme wiggly.
Assignee | ||
Comment 3•15 years ago
|
||
Also, changing the viewport's width causes reflows in all tabs, so the transition between the default theme and a lightweight theme (which getpersonas.com does on :hover!) might take unnecessarily long.
Assignee | ||
Comment 4•15 years ago
|
||
s/width/height
Comment 5•15 years ago
|
||
Yeah, but that's a split second, while the user might keep that theme for days, weeks or months. So the long-term appearance is what we need to optimize. Do the transparent borders actually improve the overall look?
Assignee | ||
Comment 6•15 years ago
|
||
I don't think I'd notice a difference if I didn't know what to look for. So it the borders might not improve the overall look, but they don't degrade it either.
Note that https://wiki.mozilla.org/images/2/22/Fx-3.7-Mockup-Mac-i03-Personas.png suggests giving the statusbar a darkening top border. Should I do that instead?
Comment 7•15 years ago
|
||
(In reply to comment #6)
> I don't think I'd notice a difference if I didn't know what to look for. So it
> the borders might not improve the overall look, but they don't degrade it
> either.
They steal valuable pixels from the content area.
> Note that
> https://wiki.mozilla.org/images/2/22/Fx-3.7-Mockup-Mac-i03-Personas.png
> suggests giving the statusbar a darkening top border. Should I do that instead?
I don't think I have an opinion on that. You could prepare a patch for that and try to get it ui-reviewed.
Assignee | ||
Comment 8•15 years ago
|
||
(In reply to comment #7)
> They steal valuable pixels from the content area.
If you say so.
> > Note that
> > https://wiki.mozilla.org/images/2/22/Fx-3.7-Mockup-Mac-i03-Personas.png
> > suggests giving the statusbar a darkening top border. Should I do that instead?
>
> I don't think I have an opinion on that. You could prepare a patch for that and
> try to get it ui-reviewed.
I'll just wait for Stephen to get his whole theme ui-reviewed.
Assignee: mstange → nobody
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Assignee | ||
Updated•15 years ago
|
Attachment #404704 -
Flags: review?(dao)
Assignee | ||
Comment 9•15 years ago
|
||
Sorry, I'll have another go at this. I thought I didn't care because I'm never going to use lightweight themes, but this is just too annoying to just let it sit.
getpersonas.com previews a lightweight theme when you hover the preview image. Having the whole page jump up and down because you moved the mouse is *really* disruptive.
I think that a non-disruptive transition is more valuable than 3px viewport height.
Assignee | ||
Updated•15 years ago
|
Attachment #404704 -
Flags: review?(dao)
Comment 10•15 years ago
|
||
Comment on attachment 404704 [details] [diff] [review]
v1
> #PersonalToolbar:-moz-lwtheme,
> #nav-bar:-moz-lwtheme {
> -moz-appearance: none !important;
> background: none !important;
>- border-style: none !important;
>+ border-color: transparent !important;
Add a comment, explaining why we don't remove the border.
> statusbar:-moz-lwtheme {
> -moz-appearance: none;
> background: none;
>- border-style: none;
>+ border: solid transparent;
>+ border-width: 1px 0 0;
> text-shadow: inherit;
> }
Removing the border here doesn't cause the content area to jump, so this change isn't needed.
r=me with that
Attachment #404704 -
Flags: review?(dao) → review+
Assignee | ||
Comment 11•15 years ago
|
||
Thanks!
Assignee: nobody → mstange
Attachment #404704 -
Attachment is obsolete: true
Status: REOPENED → ASSIGNED
Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Comment 12•15 years ago
|
||
I slightly messed up the commit message...
http://hg.mozilla.org/mozilla-central/rev/12ae893c4bd7
Status: ASSIGNED → RESOLVED
Closed: 15 years ago → 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Assignee | ||
Updated•15 years ago
|
Attachment #405633 -
Flags: approval1.9.2?
Updated•15 years ago
|
Component: Themes → Theme
Product: Toolkit → Firefox
QA Contact: themes → theme
Updated•15 years ago
|
Attachment #405633 -
Flags: approval1.9.2? → approval1.9.2+
Comment 13•15 years ago
|
||
status1.9.2:
--- → final-fixed
Comment 14•15 years ago
|
||
Dao, I'm also noticing this on the latest window builds, going from default theme to lwtheme or back again. The viewport shifts up or down by 1 px width.
You need to log in
before you can comment on or make changes to this bug.
Description
•