diff --git a/AppKit/CPColorPanel.j b/AppKit/CPColorPanel.j index 6ff738edf..b361dcc84 100644 --- a/AppKit/CPColorPanel.j +++ b/AppKit/CPColorPanel.j @@ -107,7 +107,7 @@ CPColorPickerViewHeight = 370; + (void)setPickerMode:(CPColorPanelMode)mode { var panel = [CPColorPanel sharedColorPanel]; - [panel setMode: mode]; + [panel setMode:mode]; } /* @@ -243,11 +243,11 @@ CPColorPickerViewHeight = 370; [view setFrame:[_currentView frame]]; else { - var height = (TOOLBAR_HEIGHT+10+PREVIEW_HEIGHT+5+SWATCH_HEIGHT+32), + var height = (TOOLBAR_HEIGHT + 10 + PREVIEW_HEIGHT + 5 + SWATCH_HEIGHT + 32), bounds = [[self contentView] bounds]; - [view setFrameSize: CPSizeMake(bounds.size.width - 10, bounds.size.height - height)]; - [view setFrameOrigin: CPPointMake(5, height)]; + [view setFrameSize:CPSizeMake(bounds.size.width - 10, bounds.size.height - height)]; + [view setFrameOrigin:CPPointMake(5, height)]; } [_currentView removeFromSuperview]; @@ -285,7 +285,7 @@ CPColorPickerViewHeight = 370; _colorPickers = []; var count = [ColorPickerClasses count]; - for (var i=0; i