Closed
Bug 893011
Opened 11 years ago
Closed 11 years ago
Border in find bar on top wrongly placed after bug 869543
Categories
(Firefox :: Theme, defect)
Tracking
()
RESOLVED
FIXED
Firefox 25
People
(Reporter: quicksaver, Assigned: mikedeboer)
References
(Blocks 1 open bug)
Details
Attachments
(4 files, 3 obsolete files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0 (Beta/Release) Build ID: 20130618035212 Steps to reproduce: As I mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=869543#c14, an adjustment is needed on windows, background-image property of find bar adds a pseudo-border on top. The upper part of the screenshot is how it looks like now, in the bottom part I added the following custom declarations to the findbar as a test, personally I think it looks good: background-position: bottom; background-image: linear-gradient(rgba(255,255,255,0.15) 1px, rgba(0,0,0,0.15) 1px) !important; The background-image property is the inverse of what it looks like at the moment.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mdeboer
Assignee | ||
Updated•11 years ago
|
Status: UNCONFIRMED → ASSIGNED
Component: General → Theme
Ever confirmed: true
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #774705 -
Flags: review?(dao)
Reporter | ||
Comment 2•11 years ago
|
||
Looking at that code, I'm guessing the box-shadow property was added to the find bar on top to provide the same effect of a pseudo-border. I assume this because that property was also added with bug 869543. I think that property should be removed as it essentially places the shadow directly behind the linear-gradient used in background-image, making it pretty much useless or, even worse, accentuates more the pseudo-border by adding its shading to the one from background-image. This is a redundant effect in my opinion. I suggested the background-position and background-image combination because it provides the same effect as before, thus being in conformity with the other OS's which also keep the same effect.
Reporter | ||
Comment 3•11 years ago
|
||
By the way, when I say box-shadow property, I'm referring to this one: box-shadow: 0 -1px 1px rgba(0,0,0,.1) inset; in line 20 of a/toolkit/themes/windows/global/findBar.css
Comment 4•11 years ago
|
||
Comment on attachment 774705 [details] [diff] [review] Patch: fix findbar border on Windows Mirroring the image vertically seems like it would give us a broken 3D effect with a highlight at the bottom of the bar rather than at the top.
Attachment #774705 -
Flags: review?(dao) → review-
Reporter | ||
Comment 5•11 years ago
|
||
Personally I disagree, I think it just gives us a normal-looking border at the bottom, with a small contrasting 1px line. Shouldn't it contrast with the content which could be dark, rather than contrasting with the navigation bar which will always be that color with a border visible? This is the exact same effect it had with the find bar on the bottom, as well as the same effect the linux css file has for the current find bar on top. If you're speaking about my screenshot, that may be true but it's because of compression, it seems like there's a blue shadow below the border. I've uploaded a new screenshot with the fixes proposed in Mike's patch + removed the box-shadow line I mentioned in comment 2.
Assignee | ||
Comment 6•11 years ago
|
||
removed box-shadow property. Thanks for being on top of this Quicksaver!
Attachment #774705 -
Attachment is obsolete: true
Attachment #777064 -
Flags: review?(dao)
Comment 7•11 years ago
|
||
Comment on attachment 777064 [details] [diff] [review] Patch v2: fix findbar border on Windows I still don't think we want the background image mirrored to the bottom. Usually a top highlight conveys an outset appearance whereas a bottom highlight conveys an inset appearance, neither of which I think we want here.
Attachment #777064 -
Flags: review?(dao) → review-
Reporter | ||
Comment 9•11 years ago
|
||
Of course, I agree with you in theory, although no matter how I look at the findbar I just don't see that 3D effect, maybe because it's too subtle (or maybe because I just have a too positive look on things I guess). You could lose the white pixel line and leave only the dark one if you feel so strongly about it. The difference is not that much I think. Screenshot: Another alternative to keep the 3D effect you mention would be to place just the white line at the top (no black line) and use a box-shadow to place the dark line at the bottom to work as a border (it's not the original box-shadow, I tweaked it a bit so it doesn't look so blurry): findbar { background-image: linear-gradient(rgba(255,255,255,0.15) 1px, rgba(0,0,0,0) 1px); box-shadow: 0px -1px 0 rgba(0,0,0,0.18) inset; } I still prefer the current patch's look honestly, but like I said, maybe that's just me.
Reporter | ||
Comment 10•11 years ago
|
||
Or, of course, just the single line box-shadow for the border and no background-image to make it look flat.
Assignee | ||
Comment 11•11 years ago
|
||
Attachment #777064 -
Attachment is obsolete: true
Attachment #778427 -
Flags: review?(dao)
Updated•11 years ago
|
Attachment #778427 -
Flags: review?(dao) → review+
Assignee | ||
Comment 12•11 years ago
|
||
Carrying over r=dao.
Attachment #778427 -
Attachment is obsolete: true
Attachment #778478 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 13•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e1bf70be67ec
Flags: in-testsuite-
Keywords: checkin-needed
Comment 14•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e1bf70be67ec
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 25
You need to log in
before you can comment on or make changes to this bug.
Description
•