Closed
Bug 449833
Opened 16 years ago
Closed 16 years ago
Need a platform color for chrome background on Mac OS X
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.1b1
People
(Reporter: mstange, Assigned: mstange)
References
Details
Attachments
(1 file, 1 obsolete file)
13.63 KB,
patch
|
jaas
:
review+
|
Details | Diff | Splinter Review |
In bug 449832 I need the tabs' color to be safe from color-correction. As far as I know, there are only two things that aren't color-corrected when color management is enabled:
- Things that are rendered with the native theme (-moz-appearance) and
- platform colors.
In the case of bug 449832, -moz-appearance doesn't help (I need to be able to use border-radius on the background).
So in this patch I'm adding the colors -moz-mac-chrome-active and -moz-mac-chrome-inactive (for active and inactive windows).
The patch also contains some refactoring. I wanted to avoid repeatedly hardcoding the same colors, so I put them into a new file (nsNativeThemeColors.h) which is reused in nsLookAndFeel.mm, nsCocoaWindow.h and nsNativeThemeCocoa.mm.
The names of the file and of the functions in it are probably not the best; I'm open to suggestions.
The patch is on top of that for bug 439354.
Attachment #332994 -
Flags: review?(roc)
Attachment #332994 -
Flags: superreview+
Attachment #332994 -
Flags: review?(roc)
Attachment #332994 -
Flags: review?(joshmoz)
Comment on attachment 332994 [details] [diff] [review]
fix v0.1
+static int GetIntColor(ColorName name, BOOL isMain)
...
+static float GetFloatColor(ColorName name, BOOL isMain)
...
+static NSColor* GetNSColor(ColorName name, BOOL isMain)
Would be nice if these had more descriptive names. Fix that and r+.
Assignee | ||
Comment 2•16 years ago
|
||
Attachment #332994 -
Attachment is obsolete: true
Attachment #333461 -
Flags: review?(joshmoz)
Attachment #332994 -
Flags: review?(joshmoz)
Attachment #333461 -
Flags: review?(joshmoz) → review+
Comment 3•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b1
Comment 4•16 years ago
|
||
This was backed out along with the backout of bug 439354 (perf hit)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 5•16 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•