Revision: 28293
          http://sourceforge.net/p/bibdesk/svn/28293
Author:   hofman
Date:     2023-06-06 15:52:51 +0000 (Tue, 06 Jun 2023)
Log Message:
-----------
outset of text labels was too much, NSTextFieldCell has margin 2

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2023-06-06 
14:32:56 UTC (rev 28292)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2023-06-06 
15:52:51 UTC (rev 28293)
@@ -2517,7 +2517,7 @@
                     if ((FVDrawText & drawOption)) {
                         CGContextSaveGState(cgContext);
                         
-                        textRect = [self centerScanRect:NSInsetRect(textRect, 
-4.0, 0.0)];
+                        textRect = [self centerScanRect:NSInsetRect(textRect, 
-2.0, 0.0)];
                         
                         NSString *name, *subtitle = [self subtitleAtIndex:i];
                         NSUInteger label;
@@ -2526,7 +2526,7 @@
                         
                         [_titleCell setStringValue:name ?: @""];
                         if (label > 0) {
-                            NSRect labelRect = [self 
centerScanRect:NSInsetRect(textRect, 4.0, 0.0)];
+                            NSRect labelRect = [self 
centerScanRect:NSInsetRect(textRect, 2.0, 0.0)];
                             
                             labelRect.size.height = titleHeight;
                             [FVFinderLabel drawFinderLabelHighlight:label 
inRect:labelRect];
@@ -2535,7 +2535,7 @@
                             // @@ Dark mode
                             NSColor *titleColor = [[_titleCell textColor] 
retain];
                             [_titleCell setTextColor:[NSColor 
controlTextColor]];
-                            [_titleCell drawWithFrame:NSInsetRect(textRect, 
titleHeight / 2.0 , 0) inView:self];
+                            [_titleCell drawWithFrame:NSInsetRect(textRect, 
titleHeight / 2.0, 0.0) inView:self];
                             [_titleCell setTextColor:titleColor];
                             [titleColor release];
                         }

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

Reply via email to