Closed Bug 415329 Opened 18 years ago Closed 17 years ago

large toolbar buttons are vertically misaligned

Categories

(Firefox :: Theme, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3 beta5

People

(Reporter: Gabri, Assigned: dao)

References

()

Details

Attachments

(6 files, 3 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.9b3pre) Gecko/2008013104 Minefield/3.0b3pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.9b3pre) Gecko/2008013104 Minefield/3.0b3pre As you can see there http://img523.imageshack.us/img523/2751/bugah0.png new icons on toolbar are vertical-unaligned and border is incomplete. Next, there is another little bug http://img441.imageshack.us/img441/2181/bugcs1.png I hope you can fix those before beta3 release. thank you. Reproducible: Always Steps to Reproduce: 1. 2. 3.
What is your screen resolution? The other issue you mentioned is Bug 414872.
Mine is 1280x1024
Blocks: 413806
Version: unspecified → Trunk
Status: UNCONFIRMED → NEW
Component: Theme → Toolbars
Ever confirmed: true
QA Contact: theme → toolbars
No longer blocks: 413806
Summary: Bugs on new Firefox windows theme → icons on toolbar are vertical-unaligned
Blocks: 337771
(In reply to comment #0) > As you can see there http://img523.imageshack.us/img523/2751/bugah0.png > new icons on toolbar are vertical-unaligned and border is incomplete. Where did those black lines above and below the nav bar come from, in your screenshot? Is that how Firefox normally looks on your system, or did you add those for illustration purposes?
The keyhole icons are using the same centerline as the other main toolbar buttons for vertical alignment. If you look real close, you can see that there's a common centerline that goes through the exact centers of the keyhole arrows and of stop and refresh (where the edge of the glossy highlight is the center of the icon).
Severity: trivial → enhancement
Severity: enhancement → normal
(In reply to comment #5) > Created an attachment (id=301557) [details] If you look very closely at this screenshot, you'll notice that the toolbar is 35px high (the toolbar separator is a 2px gray and white line). A 32px button will thus always look slightly misaligned, although the visual impression is worsened by the fact that the white half of the horizontal toolbar separator is hardly discernible as such. We'll thus probably need a 31px keyhole (as moving the keyhole 1px up won't might not look as good). (In reply to comment #6) > Here the screen AFTER the patch: > http://img441.imageshack.us/img441/454/fix2uq0.png Now, it's everything else that is slightly misaligned. This is particularly visible with the bevel of the Refresh button and somewhat visible for the rest when you move a Windows Explorer window closer (e.g. with the vertical separators) which is what we exactly copy in appearance.
Flags: blocking-firefox3?
Component: Toolbars → Theme
Flags: blocking-firefox3? → blocking-firefox3+
QA Contact: toolbars → theme
Attachment #301565 - Flags: review?
Attached patch Patch v1.1 (obsolete) — Splinter Review
That one is a little better than the previous one.
Attachment #301565 - Attachment is obsolete: true
Attachment #302391 - Flags: review?
(In reply to comment #8) > That one is a little better than the previous one. It's still a hack and will still break once you move the keyhole button to the menu bar. Unless you've got good reason for the contrary (and note: we're currently as native as possible!), you should really work specifically on the keyhole and not on all the toolbars.
Well, if you mouse over a normal toolbar button, the bevel overlaps the toolbar's bottom border. That's not what Windows Explorer does.
(In reply to comment #10) For me, things are pixel-perfect, so: screenshot, please.
Attached image screenshot
(In reply to comment #12) AFAICT (and that's not easy with that little context), the left button resides on the last toolbar while the right one does not - which happens to make a difference.
Right, Explorer shows the same glitch when I make that toolbar the last one.
Alex: Have you considered making the keyhole only 31px high (cf. comment #7)?
Summary: icons on toolbar are vertical-unaligned → keyhole button is vertically misaligned
>Have you considered making the keyhole only 31px high This would solve centering the keyhole, but everything on our navigation toolbar has a default size that is even (icons at 24 pixels tall, location bar at 22 pixels tall). If we have an odd pixel height for the toolbar as a whole, everything will be 1 pixel off center, not just the keyhole.
(In reply to comment #16) > everything will be 1 pixel off center, not just the keyhole. True. OTOH that's what Explorer does as well (which is what we're aiming for to look as native as possible).
>OTOH that's what Explorer does as well (which is what we're aiming for to >look as native as possible). I think people will be more likely to notice that our toolbar icons are not vertically aligned then they are to notice the difference between Firefox and Explorer.
We shouldn't be copying Explorer's misalignments for the sake of a native feel. After all, most users associate native-ness through colors and shapes, not alignment.
Looks like this isn't a native/non-native issue after all: For some reason we add a 1px padding above all large toolbar buttons but not below (see the URL). That explains why Explorer's toolbars are of even size while ours are odd. Guess we should correct that...
Summary: keyhole button is vertically misaligned → large toolbar buttons are vertically misaligned
Comment on attachment 302391 [details] [diff] [review] Patch v1.1 Mrtb: Care to provide an updated patch (and then ask Gavin or Asaf for review)?
Attachment #302391 - Attachment is obsolete: true
Attachment #302391 - Flags: review?
nice finding, Simon.
Attachment #306919 - Flags: review?(mano)
Dão: while you are adjusting this, can you give us a 36 pixel tall toolbar so that they keyhole has 2 pixels of space above and below it, and also add 2 pixels of padding in between the window frame and the left side of the etch.
(In reply to comment #24) > also add 2 pixels of padding in between the window frame and the left side ... without regressing bug 414842. ;-)
(In reply to comment #24) > Dão: while you are adjusting this, can you give us a 36 pixel tall toolbar so > that they keyhole has 2 pixels of space above and below it That would be 40 px instead of 38 px, so 2 px more just for the keyhole. That seems wrong. We already have a problem with consuming too much vertical space, especially if both the personal toolbar and the tabbar are shown. The forward button (without the keyhole's permanent outline!) looks already bigger than the normal icons. Can we put the keyhole on a diet?
Attached image Keyhole alignment spec
>That would be 40 px instead of 38 px, so 2 px more just for the keyhole. ... Can >we put the keyhole on a diet? Here is a clarification of the change I requested. The toolbar height is 36 pixels (so in addition to the keyhole the location bar is also centered vertically). The keyhole has a padding of 2 pixels above, below, and to the left of it, and the back button is now vertically aligned with the F in File, which I believe we tried to do in Firefox 2 as well.
>and the back button is now vertically aligned with the F in File Never mind on that point, I just realized that it is currently aligned with the F in File, and when I quickly made the mockup I pushed everything two pixels in. Giving the etch some padding is more important than lining up with the file menu though.
I'm not arguing against horizontal padding, I'm arguing against making the toolbar higher. If we weigh (A) a 1 pixel padding on the top and the bottom of the keyhole or (B) making the keyhole consume less space against making the toolbar 2 pixels higher, I think (A) or (B) wins as the less evil thing.
I really don't think users are going to care between a 36 pixel tall toolbar (proposed) and a 35 pixel tall toolbar (current).
No user will notice. However, it's something that adds to the overall picture. For example, see Firefox 2 being featured here: http://www.istartedsomething.com/20080303/internet-explorer-8-interface-not-fat/ Note that the 35 px (+ border) height comes from the bug that Simon discovered. It's 34 px with the attached patch.
(In reply to comment #26) > The forward button (without the keyhole's permanent outline!) looks already > bigger than the normal icons. Can we put the keyhole on a diet? To stress this, I also think the forward button and the keyhole outline being higher than the location bar hurts the desired mirror effect.
Assignee: nobody → dao
Attachment #306919 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #307351 - Flags: review?(mano)
Attachment #306919 - Flags: review?(mano)
Comment on attachment 307351 [details] [diff] [review] remove the top padding, fix the keyhole's padding, drive-by cleanup r=mano
Attachment #307351 - Flags: review?(mano) → review+
Keywords: checkin-needed
Checking in browser/themes/gnomestripe/browser/browser.css; /cvsroot/mozilla/browser/themes/gnomestripe/browser/browser.css,v <-- browser.css new revision: 1.199; previous revision: 1.198 done Checking in browser/themes/winstripe/browser/browser.css; /cvsroot/mozilla/browser/themes/winstripe/browser/browser.css,v <-- browser.css new revision: 1.186; previous revision: 1.185 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3 beta5
Blocks: 421678
Blocks: 421729
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: