Closed
Bug 455524
Opened 17 years ago
Closed 17 years ago
[Linux] location bar is higher than the search bar, star and rss icons aren't vertically centered
Categories
(Firefox :: Theme, defect, P2)
Tracking
()
VERIFIED
FIXED
Firefox 3.6a1
People
(Reporter: magicdice, Assigned: dao)
References
()
Details
(Keywords: polish, verified1.9.1, Whiteboard: [polish-easy][polish-visual][polish-p1])
Attachments
(6 files, 10 obsolete files)
|
16.11 KB,
image/jpeg
|
Details | |
|
1.90 KB,
image/png
|
Details | |
|
27.56 KB,
image/png
|
faaborg
:
ui-review+
|
Details |
|
3.89 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
|
12.20 KB,
image/png
|
Details | |
|
11.92 KB,
image/png
|
faaborg
:
ui-review+
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.1) Gecko/2008072310 Red Hat/3.0.1-3.el4 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.1) Gecko/2008072310 Red Hat/3.0.1-3.el4 Firefox/3.0.1
The star and rss icons are not vertically centered, but they are closer to the top border. I can see it only in linux (windows is fine).
Reproducible: Always
Steps to Reproduce:
Have a look at the attached screenshot.
The screenshot shows that the icons are not vertically centered (and also the star hits the right border). Ideally they should be moved 1px down and 1px to the left.
Updated•17 years ago
|
Whiteboard: [polish-visual] → [polish-easy][polish-visual]
Comment 2•17 years ago
|
||
Hmm. I think part of the problem here is that while the feed and star icons are 16x16 images, the bottom row of pixels is blank in both images. [The feed icon also only uses 15 pixels of width (left column is blank). The star icon is a full 16 pixels wide.] The go button is positioned correctly, but it's a 13x13 pixel image with CSS padding applied.
Can we just change the images, so their contents are 1 pixel lower? Not sure if these images are used elsewhere, or if we're trying to be consistent in how icons are padded within the image. [The alternative is to use CSS to move the existing icons into place.]
Alex?
Comment 3•17 years ago
|
||
>Can we just change the images, so their contents are 1 pixel lower? Not sure if
>these images are used elsewhere
Sure, star and go shouldn't appear anywhere else. The Web feed icon is also specific to the location bar (this is just the glyph version).
Keywords: uiwanted
Updated•17 years ago
|
Version: unspecified → Trunk
Comment 4•17 years ago
|
||
I found the star png ( browser/themes/gnomestripe/browser/places/starPage.png ) and would like to attempt to replace it. Is there anything I should be aware of when working on something like this? Can I just open it in the Gimp and edit it?
Assignee: nobody → ddahl
Comment 5•17 years ago
|
||
FWIW, you also want to hit these icons:
browser/themes/gnomestripe/browser/page-livemarks.png
browser/themes/gnomestripe/browser/places/pageStarred.png
(Not being familiar with UI stuff, I don't know the answer to your other questions -- sorry)
Comment 6•17 years ago
|
||
(In reply to comment #4)
> I found the star png ( browser/themes/gnomestripe/browser/places/starPage.png )
> and would like to attempt to replace it. Is there anything I should be aware of
> when working on something like this? Can I just open it in the Gimp and edit
> it?
You'll want to talk to faaborg before you do anything for sure!
Comment 7•17 years ago
|
||
Here is the new star image and livemarks in mage in the url bar. they look pretty good.
Attachment #356600 -
Flags: review?(faaborg)
Comment 8•17 years ago
|
||
So the livemarks image is now 1 px off in the select menu when subscribing to a feed. This image is vertical-aligned, and looked a pixel off before I changed the image. I adjusted the css by 2px to align it properly, screenshot is coming next...
Attachment #356609 -
Flags: review?(faaborg)
Comment 9•17 years ago
|
||
Comment 10•17 years ago
|
||
Comment on attachment 356610 [details]
tweaked css margin-bottom: 2px;
added an id to this node and did the margin-bottom:2px; Not sure if this is the preferred way of adjusting the vertical alignment?
Comment 11•17 years ago
|
||
Looks like the image is actually an image attribute of the menu itself:
<xul:menuitem id="liveBookmarksMenuItem" label="&feedLiveBookmarks;" class="menuitem-iconic" image="chrome://browser/skin/page-livemarks.png" selected="true"/>
I assume there is no way to affect the style of this image being an attr? Should I create another image to substitute here?
Comment 12•17 years ago
|
||
When editing images be careful not to add a color profile (or re-encode the image with a new profile changing the appearance), otherwise it looks like this is a simple modification of just moving the icons down a pixel.
Comment 13•17 years ago
|
||
Comment on attachment 356600 [details]
fixed star and livemarks in urlbar
we need 3 or 4 pixels of padding on the right side of the star, currently it is touching the end of the text field.
Attachment #356600 -
Flags: review?(faaborg) → ui-review-
Updated•17 years ago
|
Attachment #356610 -
Flags: ui-review+
Updated•17 years ago
|
Attachment #356609 -
Flags: review?(faaborg)
Comment 14•17 years ago
|
||
I have also de-iCCP, sRGB etc the png files. I will prepare a patch if this looks good.
Attachment #356816 -
Flags: review?(faaborg)
Comment 15•17 years ago
|
||
Let's go for 3 pixels of space on the right of the star to match the top and bottom
Comment 16•17 years ago
|
||
Comment on attachment 356816 [details]
added padding to the gnomestripe theme for #star-button
details in (kind of OCD) comment #15
Attachment #356816 -
Flags: review?(faaborg) → ui-review-
Comment 17•17 years ago
|
||
Ok. I got it. Btw: how did you produce that screenshot with pixels? On your virtual machine or native linux app? Btw: the windows css shows a single image for both bookmarked and not bookmarked with region shifting during hover. Should I be emulating that technique for linux or is that a Windows behavior only?
Attachment #357184 -
Flags: ui-review?(faaborg)
Updated•17 years ago
|
Attachment #357184 -
Flags: ui-review?(faaborg) → ui-review+
Comment 18•17 years ago
|
||
>how did you produce that screenshot with pixels? On your
>virtual machine or native linux app?
that was just the screen shot you attached in photoshop with a grid being displayed.
>the windows css shows a single image
>for both bookmarked and not bookmarked with region shifting during hover.
We do that as a hack so that the entire image loads, and there isn't a brief flicker as the state changes (normal, hover, hit).
Comment 19•17 years ago
|
||
Submitting the patch to the icons and css.
Attachment #357382 -
Flags: review?(dao)
| Assignee | ||
Comment 20•17 years ago
|
||
This doesn't look right to me, in terms of vertical alignment and horizontal padding.
| Assignee | ||
Comment 21•17 years ago
|
||
Comment on attachment 357382 [details] [diff] [review]
css and png binary changes for linux theme
See previous comment. Also note that the patch doesn't take right-to-left chrome direction into account:
> /* Star button */
> #star-button {
>- padding: 1px;
>+ padding: 1px 4px 1px 1px;
should be:
padding: 1px;
-moz-padding-end: 4px;
Attachment #357382 -
Flags: review?(dao) → review-
| Assignee | ||
Comment 22•17 years ago
|
||
Note that the star doesn't touch the right border.
Comment 23•17 years ago
|
||
Aha! Nice. Looks like I need to learn a bit more about the -moz css attrs. Thx. Attaching a new patch.
Comment 24•17 years ago
|
||
Attachment #356610 -
Attachment is obsolete: true
Attachment #356816 -
Attachment is obsolete: true
Attachment #357382 -
Attachment is obsolete: true
Attachment #357460 -
Flags: review?(dao)
| Assignee | ||
Comment 25•17 years ago
|
||
(In reply to comment #24)
> Created an attachment (id=357460) [details]
> new patch with Dao's guidance
Note that -moz-padding-end instead of padding-right only makes a difference in the right-to-left case. So this still leaves us with attachment 357457 [details], which I think isn't the desired look.
Comment 26•17 years ago
|
||
A screenshot from my build running on Ubuntu 8.10/Gnome, I think it is centered better.
Attachment #357465 -
Flags: ui-review?(faaborg)
| Assignee | ||
Updated•17 years ago
|
Attachment #357457 -
Attachment description: screenshot → screenshot with patch
Updated•17 years ago
|
Attachment #357465 -
Flags: ui-review?(faaborg) → ui-review+
| Assignee | ||
Comment 27•17 years ago
|
||
Comment on attachment 357460 [details] [diff] [review]
new patch with Dao's guidance
I still see the vertical misalignment (attachment 357457 [details]). As for the horizontal padding, I don't think we should take attachment 338877 [details] as a reference -- that's not what Firefox usually looks like on Linux.
Attachment #357460 -
Flags: review?(dao) → review-
Comment 28•17 years ago
|
||
Firefox can vary GREATLY in how it looks based on distro, DPI, window manager and window settings. I was just running KDE 4.1 with some custom window and font settings. I switched back to gnome to be more "normal", but it is far from the "norm", I think.
Comment 29•17 years ago
|
||
Here is a comparison of our vertical alignment. I'm not sure what to do here.
Attachment #358272 -
Flags: ui-review?(faaborg)
Attachment #358272 -
Flags: review?(dao)
| Assignee | ||
Comment 30•17 years ago
|
||
(In reply to comment #28)
> Firefox can vary GREATLY in how it looks based on distro, DPI, window manager
> and window settings. I was just running KDE 4.1 with some custom window and
> font settings. I switched back to gnome to be more "normal", but it is far from
> the "norm", I think.
Sure, but if we can't fix it for all settings, we need to prioritize. What I'm saying is that we shouldn't optimize for a random OS theme (attachment 357184 [details]) and worsen the look for one of the most common themes (attachment 357457 [details] -- I'm running Ubuntu 8.10 as well).
Updated•17 years ago
|
Attachment #358272 -
Flags: ui-review?(faaborg) → ui-review+
| Assignee | ||
Updated•17 years ago
|
Attachment #358272 -
Flags: review?(dao)
| Assignee | ||
Comment 31•17 years ago
|
||
Comment on attachment 358272 [details]
comparison of ddahl and dao's vertical alignment
Pending response to comment 30...
David: Also note that your patch makes the star's alignment inconsistent with the Go button.
| Assignee | ||
Comment 32•17 years ago
|
||
Alex: Please see your words from comment 15. With the current approach, I see us moving away from that spec.
Comment 33•17 years ago
|
||
>Alex: Please see your words from comment 15. With the current approach, I see
>us moving away from that spec.
I noticed additional whitespace to the right side of the star, but that didn't seem like a big enough deal to give a ui-r-, the most glarring problem was the vertical alignment.
Good catch with the alignment being inconsistent with the go button.
| Assignee | ||
Comment 34•17 years ago
|
||
(In reply to comment #33)
> >Alex: Please see your words from comment 15. With the current approach, I see
> >us moving away from that spec.
>
> I noticed additional whitespace to the right side of the star, but that didn't
> seem like a big enough deal to give a ui-r-, the most glarring problem was the
> vertical alignment.
Yeah, and the vertical alignment is still off for me (see attachment 357458 [details] (before) and attachment 357457 [details] (after)). So we're not fixing the original problem and creating new one, although a minor one.
| Assignee | ||
Comment 35•17 years ago
|
||
The vertical alignment looks like a rounding / pixel-snapping issue to me.
As for the horizontal padding, we should probably just increase #urlbar-icons' -moz-padding-end to 3px, to make it consistent with bug 405210 comment 28.
| Assignee | ||
Comment 36•17 years ago
|
||
So on Linux, the massive dropmarker makes the Location bar 1px higher than the Search bar. Instead of hacking around that, I propose that we revise the dropmarker.
| Assignee | ||
Comment 37•17 years ago
|
||
| Assignee | ||
Comment 38•17 years ago
|
||
| Assignee | ||
Updated•17 years ago
|
Attachment #363921 -
Flags: ui-review?(faaborg)
Comment 39•17 years ago
|
||
Comment on attachment 363921 [details]
after
We definetly need to fix the one pixel taller problem, also I think this looks more streamlined, even if it is slightly different than native. Tango people should weigh as well if they really disagree.
Attachment #363921 -
Flags: ui-review?(faaborg) → ui-review+
| Assignee | ||
Updated•17 years ago
|
Attachment #363919 -
Flags: review?(gavin.sharp)
| Assignee | ||
Updated•17 years ago
|
Flags: blocking-firefox3.1?
Summary: location bar icons (star, rss) not vertically centered in linux → [Linux] location bar is higher than the search bar, star and rss icons aren't vertically centered
Whiteboard: [polish-easy][polish-visual] → [polish-easy][polish-visual][polish-high-visibility]
Updated•17 years ago
|
Flags: blocking-firefox3.1? → blocking-firefox3.1+
Priority: -- → P2
| Assignee | ||
Updated•17 years ago
|
Assignee: ddahl → dao
Severity: minor → normal
Component: Location Bar and Autocomplete → Theme
QA Contact: location.bar → theme
Whiteboard: [polish-easy][polish-visual][polish-high-visibility] → [needs review gavin][polish-easy][polish-visual][polish-high-visibility]
Comment 40•17 years ago
|
||
I have some problems figuring out what this bug is about... for me the icons seem to be positioned correctly with whatever theme I try and also my url entry is not any taller than the search entry... What themes are you testing with?
| Assignee | ||
Comment 41•17 years ago
|
||
I'm using the Ubuntu 8.10 default theme. (I forgot the exact name and I'm on XP now.) I also used a slight variation which is available by default and where I saw the same problem.
| Assignee | ||
Updated•17 years ago
|
Attachment #357465 -
Attachment is obsolete: true
| Assignee | ||
Updated•17 years ago
|
Attachment #357460 -
Attachment is obsolete: true
| Assignee | ||
Updated•17 years ago
|
Attachment #356600 -
Attachment is obsolete: true
| Assignee | ||
Updated•17 years ago
|
Attachment #356609 -
Attachment is obsolete: true
| Assignee | ||
Updated•17 years ago
|
Attachment #357132 -
Attachment is obsolete: true
| Assignee | ||
Updated•17 years ago
|
Attachment #357184 -
Attachment is obsolete: true
| Assignee | ||
Updated•17 years ago
|
Attachment #357457 -
Attachment is obsolete: true
| Assignee | ||
Comment 42•17 years ago
|
||
... and I've seen it on different computers.
| Assignee | ||
Comment 43•17 years ago
|
||
I've just tried all the themes that are available by default on 8.10.
No problem with: Crux, Glider
Broken: Clearlooks, Darkroom, Dunst, Glanz, High Contrast, Human, Human Clearlooks
The given patch works for all of them, although the dropdown is a little faint with Darkroom.
| Assignee | ||
Updated•17 years ago
|
Comment 44•17 years ago
|
||
So this is fixing bug 397466, and what's changed since bug 397466 comment 12 is that we no longer have the location bar yellow background for SSL, which means we don't need the wrapper hack. Is that right?
| Assignee | ||
Comment 45•17 years ago
|
||
We didn't need the wrapper hack for the yellow background, which I was trying to say in bug 397466 :)
#autocomplete-security-wrapper was used for new hacks related to the dropmaker, which aren't needed anymore with this bug.
Comment 46•17 years ago
|
||
Comment on attachment 363919 [details] [diff] [review]
dao's patch
I assume you've tested RTL behavior and appearance.
Attachment #363919 -
Flags: review?(gavin.sharp) → review+
Updated•17 years ago
|
Whiteboard: [needs review gavin][polish-easy][polish-visual][polish-high-visibility] → [polish-easy][polish-visual][polish-high-visibility]
| Assignee | ||
Comment 47•17 years ago
|
||
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.2a1
| Assignee | ||
Comment 48•17 years ago
|
||
Keywords: fixed1.9.1
Comment 50•17 years ago
|
||
verified FIXED on builds:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2a1pre) Gecko/20090505 Minefield/3.6a1pre ID:20090505031205
and
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b5pre) Gecko/20090505 Shiretoko/3.5b5pre ID:20090505031155
Status: RESOLVED → VERIFIED
Keywords: fixed1.9.1 → verified1.9.1
Comment 52•16 years ago
|
||
This bug's priority relative to the set of other polish bugs is:
P1 - Polish issue that appears in the main window, or is something that the user may encounter several times a day.
Whiteboard: [polish-easy][polish-visual][polish-high-visibility] → [polish-easy][polish-visual][polish-p1]
You need to log in
before you can comment on or make changes to this bug.
Description
•