From 5365d1d1fdfda63da7493fc47fc0fa826fe69ca6 Mon Sep 17 00:00:00 2001 From: Ross Boucher Date: Tue, 7 Apr 2009 01:12:02 -0700 Subject: [PATCH] a few UI tweaks in the color panel --- AppKit/CPColorPanel.j | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/AppKit/CPColorPanel.j b/AppKit/CPColorPanel.j index f88ef7817..0a7a2810b 100644 --- a/AppKit/CPColorPanel.j +++ b/AppKit/CPColorPanel.j @@ -117,9 +117,11 @@ CPColorPickerViewHeight = 370; { self = [super initWithContentRect:CGRectMake(500.0, 50.0, 219.0, 322.0) styleMask:(CPTitledWindowMask | CPClosableWindowMask | CPResizableWindowMask)]; - + if (self) { + [[self contentView] setBackgroundColor:[CPColor colorWithWhite:0.95 alpha:1.0]]; + [self setTitle:@"Color Panel"]; [self setLevel:CPFloatingWindowLevel]; @@ -320,7 +322,7 @@ CPColorPickerViewHeight = 370; [_previewView setColorPanel:self]; [_previewView setAutoresizingMask:CPViewWidthSizable]; - [previewBox setBackgroundColor:[CPColor grayColor]]; + [previewBox setBackgroundColor:[CPColor colorWithWhite:0.8 alpha:1.0]]; [previewBox setAutoresizingMask:CPViewWidthSizable]; [previewBox addSubview:_previewView]; @@ -333,7 +335,7 @@ CPColorPickerViewHeight = 370; // FIXME: http://280north.lighthouseapp.com/projects/13294-cappuccino/tickets/25-implement-cpbox var swatchBox = [[CPView alloc] initWithFrame:CGRectMake(76, TOOLBAR_HEIGHT + 10 + PREVIEW_HEIGHT + 5, CGRectGetWidth(bounds) - 86, SWATCH_HEIGHT + 2.0)]; - [swatchBox setBackgroundColor:[CPColor grayColor]]; + [swatchBox setBackgroundColor:[CPColor colorWithWhite:0.8 alpha:1.0]]; [swatchBox setAutoresizingMask:CPViewWidthSizable]; _swatchView = [[_CPColorPanelSwatches alloc] initWithFrame:CGRectInset([swatchBox bounds], 1.0, 1.0)];