Revision: 13042 http://sourceforge.net/p/skim-app/code/13042 Author: hofman Date: 2022-07-20 17:14:13 +0000 (Wed, 20 Jul 2022) Log Message: ----------- better choice of rounded rect radius
Modified Paths: -------------- trunk/SKColorSwatch.m Modified: trunk/SKColorSwatch.m =================================================================== --- trunk/SKColorSwatch.m 2022-07-20 15:58:57 UTC (rev 13041) +++ trunk/SKColorSwatch.m 2022-07-20 17:14:13 UTC (rev 13042) @@ -302,7 +302,7 @@ - (void)drawFocusRingMask { NSRect rect = [self focusRingMaskBounds]; if (NSIsEmptyRect(rect) == NO) { - CGFloat r = RUNNING_AFTER(10_15) ? 4.0 : 2.0; + CGFloat r = RUNNING_AFTER(10_15) ? 3.0 : 2.0; [[NSBezierPath bezierPathWithRoundedRect:rect xRadius:r yRadius:r] fill]; } } @@ -376,7 +376,7 @@ draggedIndex = i; NSColor *color = [colors objectAtIndex:i]; - CGFloat r = RUNNING_AFTER(10_15) ? 3.5 : 1.5; + CGFloat r = RUNNING_AFTER(10_15) ? 2.5 : 1.5; NSImage *image = [NSImage bitmapImageWithSize:NSMakeSize(12.0, 12.0) scale:[self backingScale] drawingHandler:^(NSRect rect){ [color drawSwatchInRect:NSInsetRect(rect, 1.0, 1.0)]; @@ -956,7 +956,7 @@ if (NSWidth(rect) < 5.0) return; rect = NSInsetRect(rect, 2.0, 2.0); - CGFloat r = RUNNING_AFTER(10_15) ? 4.0 : 2.0; + CGFloat r = RUNNING_AFTER(10_15) ? 3.0 : 2.0; BOOL disabled = RUNNING_AFTER(10_13) && [[self window] isMainWindow] == NO && [[self window] isKeyWindow] == NO && ([self isDescendantOf:[[self window] contentView]] == NO || [[self window] isKindOfClass:NSClassFromString(@"NSToolbarSnapshotWindow")]); NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:NSInsetRect(rect, 0.5, 0.5) xRadius:r - 0.5 yRadius:r - 0.5]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit