Revision: 16418
          http://sourceforge.net/p/skim-app/code/16418
Author:   hofman
Date:     2026-09-05 16:14:15 +0000 (Sat, 05 Sep 2026)
Log Message:
-----------
slightly darker page background color for inverted colors in dark mode of 40/255

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

Modified: trunk/NSGraphics_SKExtensions.m
===================================================================
--- trunk/NSGraphics_SKExtensions.m     2026-09-03 21:48:49 UTC (rev 16417)
+++ trunk/NSGraphics_SKExtensions.m     2026-09-05 16:14:15 UTC (rev 16418)
@@ -194,7 +194,8 @@
         NSNumber *bgw = [[NSUserDefaults standardUserDefaults] 
objectForKey:SKInvertedColorsBackgroundWhiteKey];
         customFactor = bgw ? 2.0 - sRGBToGamma16(fmax(0.0, fmin(1.0, [bgw  
doubleValue]))) : 0.0;
     }
-    return customFactor ?: [[NSWorkspace sharedWorkspace] 
accessibilityDisplayShouldIncreaseContrast] ? 1.9338 : 1.8972;
+    // map the white page background to 40/255, or 30/255 with high contrast
+    return customFactor ?: [[NSWorkspace sharedWorkspace] 
accessibilityDisplayShouldIncreaseContrast] ? 1.9338 : 1.9100;
 }
 
 NSArray *SKColorEffectFilters(void) {
@@ -212,7 +213,6 @@
             [filters addObject:filter];
     }
     if (SKHasDarkAppearance() && [sud boolForKey:SKInvertColorsInDarkModeKey]) 
{
-        // map the white page background to 45/255, or 30/255 with high 
contrast
         CGFloat f = invertedColorsFilterFactor();
         CGFloat lrf = LR * f, lgf = LG * f, lbf = LB * f;
         // This is like CIColorInvert + CIHueAdjust, modified to map white to 
dark gray rather than black

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