Revision: 15866
http://sourceforge.net/p/skim-app/code/15866
Author: hofman
Date: 2025-12-13 18:48:26 +0000 (Sat, 13 Dec 2025)
Log Message:
-----------
only need to update color filters on appearance change when inverting colors
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-12-13 18:43:05 UTC (rev 15865)
+++ trunk/SKBasePDFView.m 2025-12-13 18:48:26 UTC (rev 15866)
@@ -145,7 +145,8 @@
- (void)viewDidChangeEffectiveAppearance {
if (@available(macOS 10.14, *))
[super viewDidChangeEffectiveAppearance];
- [[self scrollView] setContentFilters:SKColorEffectFilters()];
+ if ([[NSUserDefaults standardUserDefaults]
boolForKey:SKInvertColorsInDarkModeKey])
+ [[self scrollView] setContentFilters:SKColorEffectFilters()];
}
- (void)handleScrollerStyleChangedNotification:(NSNotification *)notification {
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