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)

All
Windows XP
defect
Not set
normal

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
See also bug 879600 which seems like the opposite problem but for maximized windows without LWT.
Not taking for M7.
Whiteboard: [Australis:M?] → [Australis:M?][Australis:P1]
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
(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)
(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
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
Assignee: nobody → mconley
Status: NEW → ASSIGNED
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]
Stealing.
Assignee: mconley → gijskruitbosch+bugs
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)
Attachment #817883 - Flags: review?(jaws) → review+
Attachment #817883 - Flags: checkin+
Well, that was more of a pain than I expected. I'll put up screenshots in a bit.
Attachment #818420 - Flags: review?(jaws)
Attached image screenshot-borders.png
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 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 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)
Hardware: x86 → All
Whiteboard: [Australis:M?][Australis:P2] → [Australis:M9][Australis:P2][fixed-in-ux]
Depends on: 929150
Depends on: 929604
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.

Attachment

General

Creator:
Created:
Updated:
Size: