Revision: 14404
          http://sourceforge.net/p/skim-app/code/14404
Author:   hofman
Date:     2024-07-30 17:05:34 +0000 (Tue, 30 Jul 2024)
Log Message:
-----------
add outline to bar in cursor images

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

Modified: trunk/NSCursor_SKExtensions.m
===================================================================
--- trunk/NSCursor_SKExtensions.m       2024-07-30 09:24:02 UTC (rev 14403)
+++ trunk/NSCursor_SKExtensions.m       2024-07-30 17:05:34 UTC (rev 14404)
@@ -321,11 +321,13 @@
         hotspot = NSMakePoint(16.0, 16.0);
         
         image = [[NSImage alloc] initPDFWithSize:NSMakeSize(32.0, 32.0) 
drawingHandler:^(NSRect dstRect){
-            [cursorFill setFill];
+            [cursorOutline setFill];
             [NSGraphicsContext saveGraphicsState];
             [NSShadow setShadowWithWhite:0.0 alpha:0.33333 blurRadius:1.0 
yOffset:-1.0];
+            [NSBezierPath fillRect:NSMakeRect(1.0, 13.0, 30.0, 6.0)];
+            [NSGraphicsContext restoreGraphicsState];
+            [cursorFill setFill];
             [NSBezierPath fillRect:NSMakeRect(2.0, 14.0, 28.0, 4.0)];
-            [NSGraphicsContext restoreGraphicsState];
             drawOpenHandCursor([cursorColors count] ? cursorOutline : 
cursorFill, [cursorColors count] ? cursorFill : cursorOutline);
         }];
         cursor = [[NSCursor alloc] initWithImage:image hotSpot:hotspot];
@@ -332,11 +334,13 @@
         [customCursors setObject:cursor forKey:@"openHandBarCursor"];
         
         image = [[NSImage alloc] initPDFWithSize:NSMakeSize(32.0, 32.0) 
drawingHandler:^(NSRect dstRect){
-            [cursorFill setFill];
+            [cursorOutline setFill];
             [NSGraphicsContext saveGraphicsState];
             [NSShadow setShadowWithWhite:0.0 alpha:0.33333 blurRadius:1.0 
yOffset:-1.0];
+            [NSBezierPath fillRect:NSMakeRect(1.0, 13.0, 30.0, 6.0)];
+            [NSGraphicsContext restoreGraphicsState];
+            [cursorFill setFill];
             [NSBezierPath fillRect:NSMakeRect(2.0, 14.0, 28.0, 4.0)];
-            [NSGraphicsContext restoreGraphicsState];
             drawClosedHandCursor([cursorColors count] ? cursorOutline : 
cursorFill, [cursorColors count] ? cursorFill : cursorOutline);
         }];
         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