Revision: 24164
http://sourceforge.net/p/bibdesk/svn/24164
Author: hofman
Date: 2019-08-27 09:35:09 +0000 (Tue, 27 Aug 2019)
Log Message:
-----------
no need to get centered square rect twice
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVColorMenuView.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVColorMenuView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVColorMenuView.m 2019-08-27
09:28:40 UTC (rev 24163)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVColorMenuView.m 2019-08-27
09:35:09 UTC (rev 24164)
@@ -280,7 +280,7 @@
// the X doesn't show as selected
if ([self state] == NSOnState && 0 != tag) {
[[NSColor lightGrayColor] setStroke];
- NSRect boxRect = [controlView
centerScanRect:NSInsetRect(__FVSquareRectCenteredInRect(frame), 1.0, 1.0)];
+ NSRect boxRect = [controlView centerScanRect:NSInsetRect(frame, 1.0,
1.0)];
NSBezierPath *boxPath = [NSBezierPath
fv_bezierPathWithRoundRect:boxRect xRadius:BOX_RADIUS yRadius:BOX_RADIUS];
[boxPath setLineWidth:BOX_WIDTH];
[boxPath stroke];
@@ -288,7 +288,7 @@
// draw a box around the moused-over cell (unless it's selected); the X
cell always gets highlighted, since it's never drawn as selected
else if ([self isHovered]) {
[[NSColor lightGrayColor] setStroke];
- NSRect boxRect = [controlView
centerScanRect:NSInsetRect(__FVSquareRectCenteredInRect(frame), 1.0, 1.0)];
+ NSRect boxRect = [controlView centerScanRect:NSInsetRect(frame, 1.0,
1.0)];
NSBezierPath *boxPath = [NSBezierPath
fv_bezierPathWithRoundRect:boxRect xRadius:BOX_RADIUS yRadius:BOX_RADIUS];
[[NSColor colorWithCalibratedWhite:0.5 alpha:0.3] setFill];
[boxPath fill];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit