Revision: 14401
          http://sourceforge.net/p/skim-app/code/14401
Author:   hofman
Date:     2024-07-27 18:04:35 +0000 (Sat, 27 Jul 2024)
Log Message:
-----------
change zoom in/out cursors to be more like (private) system versions

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

Modified: trunk/NSCursor_SKExtensions.m
===================================================================
--- trunk/NSCursor_SKExtensions.m       2024-07-26 16:32:43 UTC (rev 14400)
+++ trunk/NSCursor_SKExtensions.m       2024-07-27 18:04:35 UTC (rev 14401)
@@ -227,15 +227,15 @@
             [customCursors setObject:cursor forKey:@"resizeDiagonal135Cursor"];
         }
         
-        hotspot = NSMakePoint(7.0, 6.0);
+        hotspot = NSMakePoint(8.0, 7.0);
         
-        image = [[NSImage alloc] initPDFWithSize:NSMakeSize(18.0, 18.0) 
drawingHandler:^(NSRect dstRect){
+        image = [[NSImage alloc] initPDFWithSize:NSMakeSize(20.0, 20.0) 
drawingHandler:^(NSRect dstRect){
             [cursorOutline set];
-            NSBezierPath *path = [NSBezierPath 
bezierPathWithOvalInRect:NSMakeRect(1.0, 5.0, 13.0, 13.0)];
-            [path moveToPoint:NSMakePoint(14.5, 1.5)];
-            [path lineToPoint:NSMakePoint(17.5, 4.5)];
-            [path lineToPoint:NSMakePoint(12.5, 9.5)];
-            [path lineToPoint:NSMakePoint(9.5, 6.5)];
+            NSBezierPath *path = [NSBezierPath 
bezierPathWithOvalInRect:NSMakeRect(1.0, 6.0, 14.0, 14.0)];
+            [path moveToPoint:NSMakePoint(16.5, 1.5)];
+            [path lineToPoint:NSMakePoint(19.5, 4.5)];
+            [path lineToPoint:NSMakePoint(14.0, 10.0)];
+            [path lineToPoint:NSMakePoint(11.0, 7.0)];
             [path closePath];
             [NSGraphicsContext saveGraphicsState];
             [NSShadow setShadowWithWhite:0.0 alpha:0.33333 blurRadius:1.0 
yOffset:-1.0];
@@ -242,32 +242,32 @@
             [path fill];
             [NSGraphicsContext restoreGraphicsState];
             [cursorFill setStroke];
-            path = [NSBezierPath bezierPathWithOvalInRect:NSMakeRect(3.0, 7.0, 
9.0, 9.0)];
-            [path setLineWidth:2.0];
+            path = [NSBezierPath bezierPathWithOvalInRect:NSMakeRect(2.5, 7.5, 
11.0, 11.0)];
+            [path setLineWidth:1.0];
             [path stroke];
             path = [NSBezierPath bezierPath];
-            [path moveToPoint:NSMakePoint(15.5, 3.5)];
-            [path lineToPoint:NSMakePoint(10.5, 8.5)];
-            [path setLineWidth:2.5];
+            [path moveToPoint:NSMakePoint(17.25, 3.75)];
+            [path lineToPoint:NSMakePoint(11.75, 9.25)];
+            [path setLineWidth:2.0];
             [path stroke];
             path = [NSBezierPath bezierPath];
-            [path moveToPoint:NSMakePoint(5.0, 11.5)];
-            [path lineToPoint:NSMakePoint(10.0, 11.5)];
-            [path moveToPoint:NSMakePoint(7.5, 9.0)];
-            [path lineToPoint:NSMakePoint(7.5, 14.0)];
-            [path setLineWidth:1.0];
+            [path moveToPoint:NSMakePoint(5.0, 13.0)];
+            [path lineToPoint:NSMakePoint(11.0, 13.0)];
+            [path moveToPoint:NSMakePoint(8.0, 10.0)];
+            [path lineToPoint:NSMakePoint(8.0, 16.0)];
+            [path setLineWidth:2.0];
             [path stroke];
         }];
         cursor = [[NSCursor alloc] initWithImage:image hotSpot:hotspot];
         [customCursors setObject:cursor forKey:@"zoomInCursor"];
         
-        image = [[NSImage alloc] initPDFWithSize:NSMakeSize(18.0, 18.0) 
drawingHandler:^(NSRect dstRect){
+        image = [[NSImage alloc] initPDFWithSize:NSMakeSize(20.0, 20.0) 
drawingHandler:^(NSRect dstRect){
             [cursorOutline set];
-            NSBezierPath *path = [NSBezierPath 
bezierPathWithOvalInRect:NSMakeRect(1.0, 5.0, 13.0, 13.0)];
-            [path moveToPoint:NSMakePoint(14.5, 1.5)];
-            [path lineToPoint:NSMakePoint(17.5, 4.5)];
-            [path lineToPoint:NSMakePoint(12.5, 9.5)];
-            [path lineToPoint:NSMakePoint(9.5, 6.5)];
+            NSBezierPath *path = [NSBezierPath 
bezierPathWithOvalInRect:NSMakeRect(1.0, 6.0, 14.0, 14.0)];
+            [path moveToPoint:NSMakePoint(16.5, 1.5)];
+            [path lineToPoint:NSMakePoint(19.5, 4.5)];
+            [path lineToPoint:NSMakePoint(14.0, 10.0)];
+            [path lineToPoint:NSMakePoint(11.0, 7.0)];
             [path closePath];
             [NSGraphicsContext saveGraphicsState];
             [NSShadow setShadowWithWhite:0.0 alpha:0.33333 blurRadius:1.0 
yOffset:-1.0];
@@ -274,18 +274,18 @@
             [path fill];
             [NSGraphicsContext restoreGraphicsState];
             [cursorFill setStroke];
-            path = [NSBezierPath bezierPathWithOvalInRect:NSMakeRect(3.0, 7.0, 
9.0, 9.0)];
-            [path setLineWidth:2.0];
+            path = [NSBezierPath bezierPathWithOvalInRect:NSMakeRect(2.5, 7.5, 
11.0, 11.0)];
+            [path setLineWidth:1.0];
             [path stroke];
             path = [NSBezierPath bezierPath];
-            [path moveToPoint:NSMakePoint(15.5, 3.5)];
-            [path lineToPoint:NSMakePoint(10.5, 8.5)];
-            [path setLineWidth:2.5];
+            [path moveToPoint:NSMakePoint(17.25, 3.75)];
+            [path lineToPoint:NSMakePoint(11.75, 9.25)];
+            [path setLineWidth:2.0];
             [path stroke];
             path = [NSBezierPath bezierPath];
-            [path moveToPoint:NSMakePoint(5.0, 11.5)];
-            [path lineToPoint:NSMakePoint(10.0, 11.5)];
-            [path setLineWidth:1.0];
+            [path moveToPoint:NSMakePoint(5.0, 13.0)];
+            [path lineToPoint:NSMakePoint(11.0, 13.0)];
+            [path setLineWidth:2.0];
             [path stroke];
         }];
         cursor = [[NSCursor alloc] initWithImage:image hotSpot:hotspot];

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