Closed Bug 520644 Opened 15 years ago Closed 15 years ago

Switching to a lightweight theme changes border widths

Categories

(Firefox :: Theme, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta3-fixed

People

(Reporter: mstange, Assigned: mstange)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch v1 (obsolete) — Splinter Review
-moz-appearance: statusbar has 1px border-top-width.
Attachment #404704 - Flags: review?(dao)
> Switching to a lightweight theme changes border widths Why is that a problem?
Because it causes the viewport's position and size to change and makes the transition to a lightweight theme wiggly.
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.
s/width/height
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?
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?
(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.
(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
Attachment #404704 - Flags: review?(dao)
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.
Blocks: 511104
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Attachment #404704 - Flags: review?(dao)
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+
Attached patch v2Splinter Review
Thanks!
Assignee: nobody → mstange
Attachment #404704 - Attachment is obsolete: true
Status: REOPENED → ASSIGNED
Keywords: checkin-needed
I slightly messed up the commit message... http://hg.mozilla.org/mozilla-central/rev/12ae893c4bd7
Status: ASSIGNED → RESOLVED
Closed: 15 years ago15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Attachment #405633 - Flags: approval1.9.2?
Component: Themes → Theme
Product: Toolkit → Firefox
QA Contact: themes → theme
Attachment #405633 - Flags: approval1.9.2? → approval1.9.2+
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.

Attachment

General

Created:
Updated:
Size: