Revision: 13709
          http://sourceforge.net/p/skim-app/code/13709
Author:   hofman
Date:     2023-10-31 15:34:47 +0000 (Tue, 31 Oct 2023)
Log Message:
-----------
use newer enum values

Modified Paths:
--------------
    trunk/SKLineWell.m
    trunk/SKNavigationWindow.m

Modified: trunk/SKLineWell.m
===================================================================
--- trunk/SKLineWell.m  2023-10-30 15:51:47 UTC (rev 13708)
+++ trunk/SKLineWell.m  2023-10-31 15:34:47 UTC (rev 13709)
@@ -301,10 +301,10 @@
     [NSGraphicsContext saveGraphicsState];
     [NSGraphicsContext setCurrentContext:context];
     SKRunWithAppearance(self, ^{
-        [context setCompositingOperation:NSCompositeDestinationOver];
+        [context 
setCompositingOperation:NSCompositingOperationDestinationOver];
         [[NSColor windowBackgroundColor] setFill];
         [NSBezierPath fillRect:bounds];
-        [context setCompositingOperation:NSCompositeSourceOver];
+        [context setCompositingOperation:NSCompositingOperationSourceOver];
         [[[NSColor textColor] colorWithAlphaComponent:0.6] setStroke];
         [NSBezierPath strokeRect:NSInsetRect(bounds, 0.5, 0.5)];
     });

Modified: trunk/SKNavigationWindow.m
===================================================================
--- trunk/SKNavigationWindow.m  2023-10-30 15:51:47 UTC (rev 13708)
+++ trunk/SKNavigationWindow.m  2023-10-31 15:34:47 UTC (rev 13709)
@@ -758,7 +758,7 @@
         else
             color = [NSColor colorWithGenericGamma22White:1.0 alpha:[self 
isEnabledForSegment:segment] ? 0.9 : 0.3];
         [paragraphStyle setLineBreakMode:NSLineBreakByTruncatingTail];
-        [paragraphStyle setAlignment:NSCenterTextAlignment];
+        [paragraphStyle setAlignment:NSTextAlignmentCenter];
         NSAttributedString *attrString = [[NSAttributedString alloc] 
initWithString:label attributes:@{NSFontAttributeName:[self font], 
NSForegroundColorAttributeName:color, 
NSParagraphStyleAttributeName:paragraphStyle}];
         NSRect rect = frame;
         CGFloat height = [attrString size].height;

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