Revision: 2571
http://skim-app.svn.sourceforge.net/skim-app/?rev=2571&view=rev
Author: hofman
Date: 2007-07-27 06:18:57 -0700 (Fri, 27 Jul 2007)
Log Message:
-----------
Draw rectangle around note icon for selected note as a vertically centered
square.
Modified Paths:
--------------
trunk/SKNoteOutlineView.m
Modified: trunk/SKNoteOutlineView.m
===================================================================
--- trunk/SKNoteOutlineView.m 2007-07-27 13:03:22 UTC (rev 2570)
+++ trunk/SKNoteOutlineView.m 2007-07-27 13:18:57 UTC (rev 2571)
@@ -391,7 +391,10 @@
[[NSColor colorWithCalibratedWhite:1.0 alpha:0.8] set];
else
[[NSColor colorWithCalibratedWhite:0.0 alpha:0.7] set];
- [NSBezierPath strokeRect:NSInsetRect(cellFrame, 0.5, 0.5)];
+ NSRect rect = cellFrame;
+ rect.origin.y = floorf(NSMinY(rect) + 0.5 * (NSHeight(cellFrame) -
NSWidth(cellFrame)));
+ rect.size.height = NSWidth(rect);
+ [NSBezierPath strokeRect:NSInsetRect(rect, 0.5, 0.5)];
[[NSGraphicsContext currentContext] restoreGraphicsState];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit