Revision: 12531
          http://sourceforge.net/p/skim-app/code/12531
Author:   hofman
Date:     2021-11-06 19:03:29 +0000 (Sat, 06 Nov 2021)
Log Message:
-----------
Don't round of numbers to 3 decimals

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

Modified: trunk/NSGraphics_SKExtensions.m
===================================================================
--- trunk/NSGraphics_SKExtensions.m     2021-11-06 18:54:34 UTC (rev 12530)
+++ trunk/NSGraphics_SKExtensions.m     2021-11-06 19:03:29 UTC (rev 12531)
@@ -195,7 +195,8 @@
     if (SKHasDarkAppearance(NSApp) && [[NSUserDefaults standardUserDefaults] 
boolForKey:SKInvertColorsInDarkModeKey]) {
         // this is almost equivalent to CIColorInvert, but with white mapped 
to dark gray ~ controlBackgroundColor
         // combined with a matrix representation of CIHueAdjust with 
inpueAngle=M_PI
-        if ((filter = [CIFilter filterWithName:@"CIColorMatrix" 
keysAndValues:@"inputRVector", [CIVector vectorWithX:0.567 Y:-1.411 Z:-0.142], 
@"inputGVector", [CIVector vectorWithX:-0.420 Y:-0.424 Z:-0.142], 
@"inputBVector", [CIVector vectorWithX:-0.420 Y:-1.411 Z:0.856], 
@"inputBiasVector", [CIVector vectorWithX:1.0 Y:1.0 Z:1.0], nil]))
+        // CIColorInvert+CIHueAdjust would be A=1/3, B=-2/3
+        if ((filter = [CIFilter filterWithName:@"CIColorMatrix" 
keysAndValues:@"inputRVector", [CIVector vectorWithX:0.566538 Y:-1.411410 
Z:-0.142128], @"inputGVector", [CIVector vectorWithX:-0.420462 Y:-0.424410 
Z:-0.142128], @"inputBVector", [CIVector vectorWithX:-0.420462 Y:-1.41141 
Z:0.844872], @"inputBiasVector", [CIVector vectorWithX:1.0 Y:1.0 Z:1.0], nil]))
             [filters addObject:filter];
     }
     return filters;

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to