Revision: 10170
          http://sourceforge.net/p/skim-app/code/10170
Author:   hofman
Date:     2018-12-23 14:14:35 +0000 (Sun, 23 Dec 2018)
Log Message:
-----------
don't draw transparent drag image on 10.14, the system already makes it 
transparent

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

Modified: trunk/SKLineWell.m
===================================================================
--- trunk/SKLineWell.m  2018-12-23 13:52:21 UTC (rev 10169)
+++ trunk/SKLineWell.m  2018-12-23 14:14:35 UTC (rev 10170)
@@ -315,7 +315,8 @@
     NSBitmapImageRep *imageRep = [self 
bitmapImageRepForCachingDisplayInRect:bounds];
     CGFloat scale = [imageRep pixelsWide] / NSWidth(bounds);
     BOOL wasActive = lwFlags.active;
-    NSColor *borderColor = [NSColor 
colorWithCalibratedWhite:SKHasDarkAppearance(NSApp) ? 1.0 : 0.0 alpha:0.7];
+    NSColor *borderColor = [NSColor 
colorWithCalibratedWhite:SKHasDarkAppearance(NSApp) ? 1.0 : 0.0 alpha:0.6];
+    CGFloat fraction = RUNNING_AFTER(10_13) ? 1.0 : 0.7;
     
     lwFlags.active = 0;
     [self cacheDisplayInRect:bounds toBitmapImageRep:imageRep];
@@ -327,7 +328,7 @@
         [borderColor setStroke];
         [NSBezierPath strokeRect:NSInsetRect(rect, 0.5, 0.5)];
         rect = NSInsetRect(rect, 1.0, 1.0);
-        [imageRep drawInRect:rect fromRect:rect operation:NSCompositeCopy 
fraction:0.7 respectFlipped:NO hints:nil];
+        [imageRep drawInRect:rect fromRect:rect operation:NSCompositeCopy 
fraction:fraction respectFlipped:NO hints:nil];
     }];
     
     return image;

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