From 4e5c0aed67531d68d3fe1aa44b2b9957e35f10bd Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sat, 7 Mar 2026 17:29:49 +0100 Subject: [PATCH] formatting --- AppKit/CPColorPanel.j | 2 +- AppKit/CPColorWell.j | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/AppKit/CPColorPanel.j b/AppKit/CPColorPanel.j index e94da6970..86224946b 100644 --- a/AppKit/CPColorPanel.j +++ b/AppKit/CPColorPanel.j @@ -51,7 +51,7 @@ CPColorPickerViewWidth = 265; CPColorPickerViewHeight = 370; CPColorPanelColorDidChangeNotification = @"CPColorPanelColorDidChangeNotification"; -CPColorDragType = "CPColorDragType"; +CPColorDragType = @"CPColorDragType"; var PREVIEW_HEIGHT = 20.0, TOOLBAR_HEIGHT = 32.0, diff --git a/AppKit/CPColorWell.j b/AppKit/CPColorWell.j index 60b789440..765cb47d4 100644 --- a/AppKit/CPColorWell.j +++ b/AppKit/CPColorWell.j @@ -308,12 +308,14 @@ var _CPColorWellDidBecomeExclusiveNotification = @"_CPColorWellDidBecomeExclusiv - (CGRect)bezelRectForBounds:(CGRect)bounds { var bezelInset = [self currentValueForThemeAttribute:@"bezel-inset"]; + return CGRectInsetByInset(bounds, bezelInset); } - (CGRect)contentBorderRectForBounds:(CGRect)bounds { var contentBorderInset = [self currentValueForThemeAttribute:@"content-border-inset"]; + return CGRectInsetByInset(bounds, contentBorderInset); } @@ -335,7 +337,9 @@ var _CPColorWellDidBecomeExclusiveNotification = @"_CPColorWellDidBecomeExclusiv - (CPView)createEphemeralSubviewNamed:(CPString)aName { var view = [[CPView alloc] initWithFrame:CGRectMakeZero()]; + [view setHitTests:NO]; + return view; } @@ -352,7 +356,7 @@ var _CPColorWellDidBecomeExclusiveNotification = @"_CPColorWellDidBecomeExclusiv relativeToEphemeralSubviewNamed:@"bezel-view"]; [contentView setBackgroundColor:_color]; - + var contentBorderView = [self layoutEphemeralSubviewNamed:@"content-border-view" positioned:CPWindowAbove relativeToEphemeralSubviewNamed:@"content-view"];