Revision: 27318
http://sourceforge.net/p/bibdesk/svn/27318
Author: hofman
Date: 2022-03-24 15:09:36 +0000 (Thu, 24 Mar 2022)
Log Message:
-----------
Rounded corners for file header image
Modified Paths:
--------------
trunk/bibdesk/BDSKMainTableView.m
Modified: trunk/bibdesk/BDSKMainTableView.m
===================================================================
--- trunk/bibdesk/BDSKMainTableView.m 2022-03-24 06:30:21 UTC (rev 27317)
+++ trunk/bibdesk/BDSKMainTableView.m 2022-03-24 15:09:36 UTC (rev 27318)
@@ -443,14 +443,18 @@
[import setTemplate:YES];
path = [NSBezierPath bezierPath];
- [path moveToPoint:NSMakePoint(2.5, 1.5)];
- [path lineToPoint:NSMakePoint(10.5, 1.5)];
+ [path moveToPoint:NSMakePoint(2.5, 2.5)];
+ [path appendBezierPathWithArcFromPoint:NSMakePoint(2.5, 1.5)
toPoint:NSMakePoint(10.5, 1.5) radius:1.0];
+ [path appendBezierPathWithArcFromPoint:NSMakePoint(10.5, 1.5)
toPoint:NSMakePoint(10.5, 9.0) radius:1.0];
+ //[path lineToPoint:NSMakePoint(10.5, 1.5)];
[path lineToPoint:NSMakePoint(10.5, 9.0)];
[path lineToPoint:NSMakePoint(8.0, 11.5)];
- [path lineToPoint:NSMakePoint(2.5, 11.5)];
+ [path appendBezierPathWithArcFromPoint:NSMakePoint(2.5, 11.5)
toPoint:NSMakePoint(2.5, 1.5) radius:1.0];
+ //[path lineToPoint:NSMakePoint(2.5, 11.5)];
[path closePath];
[path moveToPoint:NSMakePoint(10.5, 8.5)];
- [path lineToPoint:NSMakePoint(7.5, 8.5)];
+ [path appendBezierPathWithArcFromPoint:NSMakePoint(7.5, 8.5)
toPoint:NSMakePoint(7.5, 11.5) radius:1.0];
+ //[path lineToPoint:NSMakePoint(7.5, 8.5)];
[path lineToPoint:NSMakePoint(7.5, 11.5)];
NSImage *file = [[[NSImage alloc] initBitmapWithSize:size
drawingHandler:^(NSRect rect){
[path stroke];
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