Closed
Bug 879606
Opened 12 years ago
Closed 12 years ago
Missing window border at the top of the window in restored mode for non-glass windows themes + LWT
Categories
(Firefox :: Theme, defect)
Tracking
()
RESOLVED
FIXED
Firefox 28
People
(Reporter: Dolske, Assigned: Gijs)
References
Details
(Whiteboard: [Australis:M9][Australis:P2])
Attachments
(4 files)
(Filed from Australis tabs ui-review #1)
XP Classic + LWT -- border on top of window missing? Seems like it's overlapping or something. See also bug 590945 -- when that's fixed, we'll actually _want_ to extend things to the edge (closer? all the way? not sure)
https://www.flickr.com/photos/12814025@N06/8951189417/in/set-72157633932643588
Comment 1•12 years ago
|
||
See also bug 879600 which seems like the opposite problem but for maximized windows without LWT.
Assignee | ||
Comment 2•12 years ago
|
||
Not taking for M7.
Reporter | ||
Updated•12 years ago
|
Whiteboard: [Australis:M?] → [Australis:M?][Australis:P1]
Assignee | ||
Comment 3•12 years ago
|
||
On Nightly, we deal with this by having a titlebar in Classic mode when restored, which means we don't have any issues. I think we probably want to avoid doing that if possible. Is there a value for chromemargin we could use to get just the top window border, but not the titlebar? I've tried just using background positioning or margins or such, but that doesn't help because the LWT also specifies a background color, and the main window seems to treat margin and padding the same (that is, backgrounds get drawn in them anyway). Alternatively, we could try to fake the border with CSS, but I'm not sure how much I like that idea.
Dao, do you have an idea what we could do here?
Flags: needinfo?(dao)
Summary: XP Classic + LWT missing native window border at the top of the window → XP/7 Classic + LWT missing native window border at the top of the window
Comment 4•12 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #3)
> Is there a value for chromemargin we could use
> to get just the top window border, but not the titlebar?
I don't think so.
> I've tried just
> using background positioning or margins or such, but that doesn't help
> because the LWT also specifies a background color, and the main window seems
> to treat margin and padding the same (that is, backgrounds get drawn in them
> anyway).
Right, that's not going to work either.
I see no option other than drawing the title bar or faking the border.
This bug actually affects pretty every Windows theme except for Glass where we already deal with it, right?
Flags: needinfo?(dao)
Assignee | ||
Comment 5•12 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #4)
> This bug actually affects pretty every Windows theme except for Glass where
> we already deal with it, right?
Looks like it, yes. I've adjusted the summary accordingly.
Summary: XP/7 Classic + LWT missing native window border at the top of the window → Missing window border at the top of the window in restored mode for non-glass windows themes
Updated•12 years ago
|
Summary: Missing window border at the top of the window in restored mode for non-glass windows themes → Missing window border at the top of the window in restored mode for non-glass windows themes + LWT
Updated•12 years ago
|
Assignee: nobody → mconley
Status: NEW → ASSIGNED
Comment 6•12 years ago
|
||
Hm - I personally don't think this bug is severe enough to be P1. P2 or P3 maybe, but not P1.
Downgrading priority until further notice.
Whiteboard: [Australis:M?][Australis:P1] → [Australis:M?][Australis:P2]
Assignee | ||
Comment 8•12 years ago
|
||
So this isn't too hard on classic mode. This produces the right result, even with non-default colors. However, this doesn't work on XP modern themes, which is why I stuck it in a classic-only media query. Unfortunately, AFAICT there's no way to get the window border colors for modern themes - the CSS colors I use here simply lieand return grey values (I realize that I'm using the ThreeD ones explicitly here, because those make up the outer border on classic). I suspect we'll need to hardcode something that works for the three XP modern values and put those in media queries too, ugly though it is. What we'd do for custom themes with an lwtheme, I'm not sure about.
Attachment #817883 -
Flags: review?(jaws)
Assignee | ||
Comment 9•12 years ago
|
||
Updated•12 years ago
|
Attachment #817883 -
Flags: review?(jaws) → review+
Assignee | ||
Comment 10•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #817883 -
Flags: checkin+
Assignee | ||
Comment 11•12 years ago
|
||
Well, that was more of a pain than I expected. I'll put up screenshots in a bit.
Attachment #818420 -
Flags: review?(jaws)
Assignee | ||
Comment 12•12 years ago
|
||
Well, that took longer than I thought it would.
Note that you can sort of see the edge of the titlebar still being drawn on the side borders of the window. It's especially visible in the luna-silver focused window. That's a Windows or Core thing we can't really fix, though, and it happens if we don't fix this, too, so I'd like to still take this.
Comment 13•12 years ago
|
||
Comment on attachment 818420 [details] [diff] [review]
draw top window border for XP modern themes when lwtheme is active,
Review of attachment 818420 [details] [diff] [review]:
-----------------------------------------------------------------
There's no proper spec for these colors, so I'd at least like to run this by Stephen (if he has the time, hence f? not r?).
Attachment #818420 -
Flags: review?(jaws)
Attachment #818420 -
Flags: review+
Attachment #818420 -
Flags: feedback?(shorlander)
Comment 14•12 years ago
|
||
Comment on attachment 818420 [details] [diff] [review]
draw top window border for XP modern themes when lwtheme is active,
Review of attachment 818420 [details] [diff] [review]:
-----------------------------------------------------------------
Gijs, feel free to go ahead and land and then we can file a follow-up to tweak the colors if necessary.
Attachment #818420 -
Flags: feedback?(shorlander)
Updated•12 years ago
|
Hardware: x86 → All
Assignee | ||
Comment 15•12 years ago
|
||
Whiteboard: [Australis:M?][Australis:P2] → [Australis:M9][Australis:P2][fixed-in-ux]
Assignee | ||
Comment 16•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9fd9f974e727
https://hg.mozilla.org/mozilla-central/rev/ef2d420ecc1a
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:M9][Australis:P2][fixed-in-ux] → [Australis:M9][Australis:P2]
Target Milestone: --- → Firefox 28
You need to log in
before you can comment on or make changes to this bug.
Description
•