Closed Bug 1203481 Opened 9 years ago Closed 5 years ago

All dividers in the URL bar should have the same style

Categories

(Firefox :: Theme, defect, P5)

All
Unspecified
defect

Tracking

()

RESOLVED WORKSFORME
Firefox 49
Tracking Status
firefox43 --- affected
firefox50 --- fixed

People

(Reporter: phlsa, Assigned: dcritchley)

References

Details

(Whiteboard: [qx])

Attachments

(2 files, 2 obsolete files)

Attached image screen shot
There are currently two permanent dividers in the URL bar: the one between URL and identity block and the one between the stop/go/reload button and the dropmarker.

They have slightly different colors and sizes. One way or another they should look the same.
Flags: needinfo?(shorlander)
Blocks: 1247816
No longer blocks: fx-qx
Assignee: nobody → ralin
Hi!!

I've made a patch, but have no idea whom to contact.  

Philipp, should I contact to you? Thanks.
Flags: needinfo?(philipp)
How about upload the patch to the bug here and provide a screenshot :) ?
Flags: needinfo?(ralin)
In this patch, I adjusted the height of .urlbar-*-buttons to the same as #urlbar's. 

Screenshot:
https://www.dropbox.com/s/m7my0mjfshmre8e/Screenshot%202016-03-29%2017.39.34.png?dl=0
Flags: needinfo?(ralin)
Comment on attachment 8735787 [details] [diff] [review]
Bug-1203481-All-dividers-in-the-URL-bar-to-same-styl.patch

Looks good! Thanks!
You'll also need to request a code review from an engineer before landing it.
Flags: needinfo?(shorlander)
Flags: needinfo?(philipp)
Attachment #8735787 - Flags: ui-review+
Comment on attachment 8735787 [details] [diff] [review]
Bug-1203481-All-dividers-in-the-URL-bar-to-same-styl.patch

Review of attachment 8735787 [details] [diff] [review]:
-----------------------------------------------------------------

I don't think this is right on Windows. Here is how it looks on Windows, which shows that the separator next to the stop/go/reload button is now a few pixels taller than the identity-block separator: http://screencast.com/t/R0Sf4TRrYU3X
Attachment #8735787 - Flags: review-
That's my fault that I didn't verify it again on Windows. I don't have handy Windows environment now, I'll fix it this weekend.

Thanks for your reviewing.
Comment on attachment 8741214 [details]
MozReview Request: Bug 1203481 - All dividers in the URL bar to same style; r?jaws

https://reviewboard.mozilla.org/r/46293/#review43775

Unfortunately these are still not the same on my machine, which is running Windows 10 in HiDPI. Zoom in on this screenshot to see that the stop-go-reload separator is about 2 pixels shorter (1 on the top and 1 on the bottom) than the site-identity separator.

http://content.screencast.com/users/j.wein/folders/Jing/media/4fe5a065-75c4-4b9c-99f8-e61482beff8f/2016-04-18_1335.png
Attachment #8741214 - Flags: review?(jaws)
In practice, it is really hard to tell that these two are different, so I am willing to grant r+ on this if you'd like to land what you have in the as-is.
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #9)
> In practice, it is really hard to tell that these two are different, so I am
> willing to grant r+ on this if you'd like to land what you have in the as-is.

Thank you Jared! 

If this bug is not urgent, I'd like to fix it after Bug 887934. I think I'll have more comprehensive environment to work on UI tweaks on Windows then.
Comment on attachment 8741214 [details]
MozReview Request: Bug 1203481 - All dividers in the URL bar to same style; r?jaws

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/46293/diff/1-2/
Attachment #8741214 - Flags: review?(jaws)
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #9)
> In practice, it is really hard to tell that these two are different, so I am
> willing to grant r+ on this if you'd like to land what you have in the as-is.

Sorry for sooooo late update. Little tweak to Windows theme, now the dividers' height should be close to be the same.

Thank you so much :)
Comment on attachment 8741214 [details]
MozReview Request: Bug 1203481 - All dividers in the URL bar to same style; r?jaws

https://reviewboard.mozilla.org/r/46293/#review54860

On my HiDPI resolution the url-stop-go splitter actually has one extra pixel on the top and bottom, though this difference is not noticeable unless you place them very close together and zoom in using a graphics program. The patch as-is is a net improvement, so let's take this and move on from here :)
Attachment #8741214 - Flags: review?(jaws) → review+
Keywords: checkin-needed
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/fx-team/rev/5662da82f125
All dividers in the URL bar to same style; r=jaws
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/5662da82f125
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
Has anyone tested this on Linux? Also, what's the point of the negative top and bottom margins that are then seemingly neutralized by the top and bottom padding?
Flags: needinfo?(ralin)
Flags: needinfo?(jaws)
Comment on attachment 8741214 [details]
MozReview Request: Bug 1203481 - All dividers in the URL bar to same style; r?jaws

I've backed this out: https://hg.mozilla.org/integration/fx-team/rev/846fcdf259a5

This patch is definitely wrong on Linux, may need another look on other platforms too. Comment 13 isn't really reassuring. We should aim for pixel-perfection here unless there's some technical reason why we can't.
Flags: needinfo?(ralin)
Flags: needinfo?(jaws)
Attachment #8741214 - Flags: review-
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: ralin → dcritchley
Would it would be a better fix to make the divider it's own element and styles, as opposed to using borders on existing elements which may vary in height? This way the styling of the divider would be consistent for this and future applications.
Flags: needinfo?(jaws)
Flags: needinfo?(dao+bmo)
I'll defer to Dao on this.
Flags: needinfo?(jaws)
I think if we can fix this with simple CSS adjustments, we should just do that. If there are reason why that would be particularly hard, we can consider adding a dedicated element for the separator.
Flags: needinfo?(dao+bmo)
Comment on attachment 8771119 [details] [diff] [review]
Attachment to Bug 1203481 - All dividers in the URL bar should have the same style

styled the top/bottom padding on the elements the same so hopefully this fixes the issue you were seeing. Tested on OS X, Linux and Windows, divider was the same height and color on all 3.
Attachment #8771119 - Flags: review?(jaws)
Attachment #8771119 - Flags: review?(dao+bmo)
Attachment #8741214 - Attachment is obsolete: true
Attachment #8735787 - Attachment is obsolete: true
Comment on attachment 8771119 [details] [diff] [review]
Attachment to Bug 1203481 - All dividers in the URL bar should have the same style

Review of attachment 8771119 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me but please wait for Dao to review this as well.
Attachment #8771119 - Flags: review?(jaws) → review+
Comment on attachment 8771119 [details] [diff] [review]
Attachment to Bug 1203481 - All dividers in the URL bar should have the same style

couple of points:

- does this actually change anything? Could you attach before/after screenshots?

- https://hg.mozilla.org/mozilla-central/rev/3705eb1dc2cc moved the separator from the end of #identity-box and #urlbar-display-box to the start of #urlbar-display-box and .urlbar-input-box. This is confusing and seems unnecessary; I think we should go back to setting the border on #identity-box and #urlbar-display-box.

- on Linux there's also this rule that should be removed for that separator to have the expected height: https://dxr.mozilla.org/mozilla-central/source/browser/themes/linux/browser.css#966
Attachment #8771119 - Flags: review?(dao+bmo)
(In reply to Dão Gottwald [:dao] from comment #25)
> - on Linux there's also this rule that should be removed for that separator
> to have the expected height:
> https://dxr.mozilla.org/mozilla-central/source/browser/themes/linux/browser.
> css#966

permalink: https://hg.mozilla.org/mozilla-central/annotate/091b06284ffe/browser/themes/linux/browser.css#l966
I think this can be closed now with Photon in place.
Status: REOPENED → RESOLVED
Closed: 8 years ago5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: