Revision: 14153
          http://sourceforge.net/p/skim-app/code/14153
Author:   hofman
Date:     2024-03-28 10:34:17 +0000 (Thu, 28 Mar 2024)
Log Message:
-----------
rounded rect for window indicator image

Modified Paths:
--------------
    trunk/NSValueTransformer_SKExtensions.m

Modified: trunk/NSValueTransformer_SKExtensions.m
===================================================================
--- trunk/NSValueTransformer_SKExtensions.m     2024-03-27 17:08:19 UTC (rev 
14152)
+++ trunk/NSValueTransformer_SKExtensions.m     2024-03-28 10:34:17 UTC (rev 
14153)
@@ -214,13 +214,12 @@
         static NSImage *windowImage = nil;
         if (windowImage == nil) {
             windowImage = [NSImage imageWithSize:NSMakeSize(12.0, 12.0) 
flipped:NO drawingHandler:^(NSRect dstRect){
-                NSBezierPath *path = [NSBezierPath bezierPath];
-                [path moveToPoint:NSMakePoint(1.0, 2.0)];
-                [path appendBezierPathWithArcWithCenter:NSMakePoint(3.0, 10.0) 
radius:2.0 startAngle:180.0 endAngle:90.0 clockwise:YES];
-                [path appendBezierPathWithArcWithCenter:NSMakePoint(9.0, 10.0) 
radius:2.0 startAngle:90.0 endAngle:0.0 clockwise:YES];
-                [path lineToPoint:NSMakePoint(11.0, 2.0)];
+                NSBezierPath *path = [NSBezierPath 
bezierPathWithRoundedRect:NSMakeRect(1.0, 1.0, 10.0, 10.0) xRadius:2.0 
yRadius:2.0];
+                [path moveToPoint:NSMakePoint(10.0, 9.0)];
+                [path appendBezierPathWithArcWithCenter:NSMakePoint(9.0, 3.0) 
radius:1.0 startAngle:0.0 endAngle:270.0 clockwise:YES];
+                [path appendBezierPathWithArcWithCenter:NSMakePoint(3.0, 3.0) 
radius:1.0 startAngle:270.0 endAngle:180.0 clockwise:YES];
+                [path lineToPoint:NSMakePoint(2.0, 9.0)];
                 [path closePath];
-                [path appendBezierPath:[NSBezierPath 
bezierPathWithRect:NSMakeRect(2.0, 3.0, 8.0, 7.0)]];
                 [path setWindingRule:NSEvenOddWindingRule];
                 [[NSColor blackColor] setFill];
                 [path fill];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to