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)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.1b1

People

(Reporter: mstange, Assigned: mstange)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch fix v0.1 (obsolete) — 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)
Blocks: 449832
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+.
Attachment #332994 - Attachment is obsolete: true
Attachment #333461 - Flags: review?(joshmoz)
Attachment #332994 - Flags: review?(joshmoz)
Attachment #333461 - Flags: review?(joshmoz) → review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b1
This was backed out along with the backout of bug 439354 (perf hit)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Depends on: 483498
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: