Revision: 13999
          http://sourceforge.net/p/skim-app/code/13999
Author:   hofman
Date:     2023-12-27 09:47:16 +0000 (Wed, 27 Dec 2023)
Log Message:
-----------
use modern NSBackgroundStyle enum values

Modified Paths:
--------------
    trunk/SKMainWindowController.m
    trunk/SKThumbnailItem.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2023-12-27 09:43:00 UTC (rev 13998)
+++ trunk/SKMainWindowController.m      2023-12-27 09:47:16 UTC (rev 13999)
@@ -1567,7 +1567,7 @@
         }
     } else {
         [(NSVisualEffectView *)[overviewView backgroundView] 
setMaterial:isPresentation ? NSVisualEffectMaterialDark : 
NSVisualEffectMaterialSidebar];
-        [[overviewView visibleItems] setValue:[NSNumber 
numberWithInteger:isPresentation ? NSBackgroundStyleEmphasized : 
NSBackgroundStyleLight] forKey:@"backgroundStyle"];
+        [[overviewView visibleItems] setValue:[NSNumber 
numberWithInteger:isPresentation ? NSBackgroundStyleEmphasized : 
NSBackgroundStyleNormal] forKey:@"backgroundStyle"];
     }
     [overviewView setSingleClickAction:isPresentation ? 
@selector(hideOverview:) : NULL];
     
@@ -1667,7 +1667,7 @@
     if (markedPageIndex == i)
         [item setMarked:YES];
     if (@available(macOS 10.14, *)) {} else
-        [item setBackgroundStyle:[self interactionMode] == SKPresentationMode 
? NSBackgroundStyleEmphasized : NSBackgroundStyleLight];
+        [item setBackgroundStyle:[self interactionMode] == SKPresentationMode 
? NSBackgroundStyleEmphasized : NSBackgroundStyleNormal];
     return item;
 }
 

Modified: trunk/SKThumbnailItem.m
===================================================================
--- trunk/SKThumbnailItem.m     2023-12-27 09:43:00 UTC (rev 13998)
+++ trunk/SKThumbnailItem.m     2023-12-27 09:47:16 UTC (rev 13999)
@@ -106,7 +106,7 @@
 - (void)prepareForReuse {
     [super prepareForReuse];
     [self setSelected:NO];
-    [self setBackgroundStyle:NSBackgroundStyleLight];
+    [self setBackgroundStyle:NSBackgroundStyleNormal];
     [self setHighlightLevel:0];
     [self setMarked:NO];
 }

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