Closed Bug 599241 Opened 14 years ago Closed 14 years ago

Draw accent colour in titlebar until we can draw content in titlebar again

Categories

(Core :: Widget: Cocoa, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- beta7+

People

(Reporter: joe, Assigned: joe)

References

Details

Attachments

(1 file, 2 obsolete files)

It's quite a bit of work to get drawing of the persona in the titlebar working with OpenGL, but it's much less work to get the accent colour drawing in the titlebar again. This patch does that.
Attachment #478181 - Flags: review?(mstange)
Assignee: nobody → joe
Blocks: ogl-osx-beta
No longer blocks: 595156
blocking2.0: --- → beta7+
Blocks: 595156
The LightweightThemeConsumer.jsm part is good, the nsChildView.mm is unnecessary if you land bug 595933 first, and I'm not happy with the nsCocoaWindow.mm part.
I think you only need to change this:

> CGPatternDrawPatternCallback cb = [mWindow drawsContentsIntoWindowFrame] ?
>                                     &ContentPatternDrawCallback : &RepeatedPatternDrawCallback;

to ignore [mWindow drawsContentsIntoWindowFrame] and use RepeatedPatternDrawCallback always. RepeatedPatternDrawCallback should already do the right thing.

But couldn't we just do the accent color fallback only for the OpenGL case? You could add a isUsingOpenGL method to the ChildView class and query that from setFill.
Attached patch address comments (obsolete) — Splinter Review
Hope you don't mind - I just subsumed your patch in the other bug, since it's needed for this one.
Attachment #478181 - Attachment is obsolete: true
Attachment #479191 - Flags: review?(mstange)
Attachment #478181 - Flags: review?(mstange)
Whiteboard: [needs review] → [needs review mstange]
this time with more qrefresh
Attachment #479191 - Attachment is obsolete: true
Attachment #479192 - Flags: review?(mstange)
Attachment #479191 - Flags: review?(mstange)
Attachment #479192 - Flags: review?(mstange) → review+
Whiteboard: [needs review mstange]
http://hg.mozilla.org/mozilla-central/rev/a976293325c6
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Flags: in-litmus?(abillings)
Flags: in-litmus?(abillings) → in-litmus?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: