Revision: 15711
          http://sourceforge.net/p/skim-app/code/15711
Author:   hofman
Date:     2025-10-25 17:31:29 +0000 (Sat, 25 Oct 2025)
Log Message:
-----------
use variable

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

Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m       2025-10-25 17:23:59 UTC (rev 15710)
+++ trunk/SKBasePDFView.m       2025-10-25 17:31:29 UTC (rev 15711)
@@ -151,13 +151,11 @@
 
 - (void)handleScrollerStyleChangedNotification:(NSNotification *)notification {
     if (@available(macOS 10.14, *)) {
-        if ([NSScroller preferredScrollerStyle] == NSScrollerStyleLegacy) {
-            [[[self scrollView] verticalScroller] setAppearance:nil];
-            [[[self scrollView] horizontalScroller] setAppearance:nil];
-        } else {
-            [[[self scrollView] verticalScroller] setAppearance:[NSAppearance 
appearanceNamed:NSAppearanceNameAqua]];
-            [[[self scrollView] horizontalScroller] 
setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameAqua]];
-        }
+        NSAppearance *appearance = nil;
+        if ([NSScroller preferredScrollerStyle] != NSScrollerStyleLegacy)
+            appearance = [NSAppearance appearanceNamed:NSAppearanceNameAqua];
+        [[[self scrollView] verticalScroller] setAppearance:appearance];
+        [[[self scrollView] horizontalScroller] setAppearance:appearance];
     }
 }
 

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