Revision: 15256
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15256&view=rev
Author:   hofman
Date:     2009-05-03 10:11:36 +0000 (Sun, 03 May 2009)

Log Message:
-----------
expand title and subtitle in fileview to undo NSTextFieldCell margin

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

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2009-05-03 
05:01:09 UTC (rev 15255)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2009-05-03 
10:11:36 UTC (rev 15256)
@@ -2162,7 +2162,7 @@
                     CGContextRestoreGState(cgContext);
                     CGContextSaveGState(cgContext);
                     
-                    textRect = [self centerScanRect:textRect];
+                    textRect = [self centerScanRect:NSInsetRect(textRect, 
-4.0, 0.0)];
                     
                     NSString *name, *subtitle = [self subtitleAtIndex:i];
                     NSUInteger label;
@@ -2171,7 +2171,7 @@
                     
                     [_titleCell setStringValue:name ?: @""];
                     if (label > 0) {
-                        CGRect labelRect = NSRectToCGRect(textRect);
+                        CGRect labelRect = NSRectToCGRect([self 
centerScanRect:NSInsetRect(textRect, 4.0, 0.0)]);
                         
                         labelRect.size.height = titleHeight;                   
     
                         [FVFinderLabel drawFinderLabel:label inRect:labelRect 
ofContext:cgContext flipped:NO roundEnds:YES];
@@ -2179,7 +2179,7 @@
                         // labeled title uses black text for greater contrast; 
inset horizontally because of the rounded end caps
                         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) 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.

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to