Revision: 13445
          http://sourceforge.net/p/skim-app/code/13445
Author:   hofman
Date:     2023-05-18 09:26:23 +0000 (Thu, 18 May 2023)
Log Message:
-----------
return sRGB color from scripting, so we don't use calibrated color space in UI

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

Modified: trunk/NSColor_SKExtensions.m
===================================================================
--- trunk/NSColor_SKExtensions.m        2023-05-16 16:06:20 UTC (rev 13444)
+++ trunk/NSColor_SKExtensions.m        2023-05-18 09:26:23 UTC (rev 13445)
@@ -188,7 +188,7 @@
             alpha = (CGFloat)[[descriptor descriptorAtIndex:4] int32Value] / 
65535.0f;
         else
             alpha= 1.0;
-        return [NSColor colorWithCalibratedRed:red green:green blue:blue 
alpha:alpha];
+        return [[NSColor colorWithCalibratedRed:red green:green blue:blue 
alpha:alpha] colorUsingColorSpace:[NSColorSpace sRGBColorSpace]];
     } else if ([descriptor descriptorType] == typeEnumerated) {
         switch ([descriptor enumCodeValue]) {
             case SKScriptingColorRed: return [NSColor redColor];

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