Closed Bug 600986 Opened 14 years ago Closed 14 years ago

Persona background is seen above titlebar (Classic theme)

Categories

(Core :: Widget: Win32, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b7
Tracking Status
blocking2.0 --- final+

People

(Reporter: Felipe, Assigned: Felipe)

Details

Attachments

(2 files)

Spin off from bug 591930. See attached screenshot.

What happens is that the native drawing insets the gradient titlebar to position it accordingly to other windows on the system
http://mxr.mozilla.org/mozilla-central/source/widget/src/windows/nsNativeThemeWin.cpp#3222

This leaves some transparent space above the titlebar, which is usually the window default background, but it can be the persona background-image too. I think the solution is just to paint the window default background color instead of leaving that transparent. I have a patch for that
blocking2.0: --- → ?
Attached patch Patch v1Splinter Review
Is this the right thing to do? I don't think it's possible to fix this with CSS since the titlebar is being natively drawn. I couldn't just move the titlebar up as the window border is also part of it (the transparent space falls between the edge and the gradient, all inside the #titlebar element)

(This should be good for review if it's the correct fix)
Attachment #479937 - Flags: feedback?(jmathies)
Why is the persona background being positioned where it's not going to be visible?  Or is it visible in the titlebar space on other windows themes?
Technically it's because the area of the titlebar is drawn by us now (so it's part the client area), and the persona theme is just a background image applied to the #main-window.

On the Aero glass theme it's indeed visible in the titlebar space
Comment on attachment 479937 [details] [diff] [review]
Patch v1

I believe this is the right approach. switching feedback to review
Attachment #479937 - Flags: feedback?(jmathies) → review?(jmathies)
Comment on attachment 479937 [details] [diff] [review]
Patch v1

works well. I'm kind of sad though, I considered that a cool feature, not a bug!
Attachment #479937 - Flags: review?(jmathies) → review+
http://hg.mozilla.org/mozilla-central/rev/00c23130c7d1
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Target Milestone: mozilla2.0b8 → mozilla2.0b7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: