Revision: 24167
http://sourceforge.net/p/bibdesk/svn/24167
Author: hofman
Date: 2019-08-28 14:15:16 +0000 (Wed, 28 Aug 2019)
Log Message:
-----------
tweak finder label display
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-28
09:34:22 UTC (rev 24166)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVColorMenuView.m 2019-08-28
14:15:16 UTC (rev 24167)
@@ -95,10 +95,15 @@
_labelNameCell = [[NSTextFieldCell alloc] initTextCell:@""];
[_labelNameCell setAlignment:NSCenterTextAlignment];
- [_labelNameCell setFont:[NSFont boldSystemFontOfSize:[NSFont
smallSystemFontSize]]];
- // @@ Dark mode
- [_labelNameCell setTextColor:[NSColor
respondsToSelector:@selector(systemGrayColor)] ? [NSColor systemGrayColor] :
[NSColor disabledControlTextColor]];
-
+ if (floor(NSAppKitVersionNumber) < NSAppKitVersionNumber10_10)
+ {
+ [_labelNameCell setFont:[NSFont boldSystemFontOfSize:[NSFont
smallSystemFontSize]]];
+ [_labelNameCell setTextColor:[NSColor disabledControlTextColor]];
+ }
+ else {
+ // @@ Dark mode
+ [_labelNameCell setTextColor:[NSColor systemGrayColor]];
+ }
[self _createMatrix];
_target = nil;
@@ -269,8 +274,7 @@
- (void)drawInteriorWithFrame:(NSRect)frame inView:(NSView *)controlView
{
frame = __FVSquareRectCenteredInRect(frame);
- CGFloat inset = floor(NSWidth(frame) / 5);
- NSRect interiorFrame = NSInsetRect(frame, inset, inset);
+ NSRect interiorFrame = NSInsetRect(frame, 3.0, 3.0);
NSInteger tag = [self tag];
BOOL isLegacy = floor(NSAppKitVersionNumber) < NSAppKitVersionNumber10_10;
@@ -303,7 +307,7 @@
[boxPath stroke];
}
else {
- interiorFrame = [controlView centerScanRect:NSInsetRect(frame,
1.0, 1.0)];
+ interiorFrame = [controlView centerScanRect:NSInsetRect(frame,
0.5, 0.5)];
}
}
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