Revision: 12179
          http://sourceforge.net/p/skim-app/code/12179
Author:   hofman
Date:     2021-03-08 18:54:44 +0000 (Mon, 08 Mar 2021)
Log Message:
-----------
Always give full screen navigation window dark appearance

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

Modified: trunk/SKColorSwatch.m
===================================================================
--- trunk/SKColorSwatch.m       2021-03-08 18:31:00 UTC (rev 12178)
+++ trunk/SKColorSwatch.m       2021-03-08 18:54:44 UTC (rev 12179)
@@ -847,6 +847,7 @@
         [cell setSegmentStyle:NSSegmentStyleTexturedSquare];
         [cell setWidth:fmax(0.0, NSWidth(frameRect) - BACKGROUND_WIDTH_OFFSET) 
forSegment:0];
         [self setCell:cell];
+        [self addTrackingArea:[[[NSTrackingArea alloc] initWithRect:[self 
bounds] options:NSTrackingMouseEnteredAndExited | NSTrackingActiveInActiveApp | 
NSTrackingInVisibleRect owner:self userInfo:nil] autorelease]];
     }
     return self;
 }

Modified: trunk/SKNavigationWindow.m
===================================================================
--- trunk/SKNavigationWindow.m  2021-03-08 18:31:00 UTC (rev 12178)
+++ trunk/SKNavigationWindow.m  2021-03-08 18:54:44 UTC (rev 12179)
@@ -42,6 +42,7 @@
 #import "SKPDFView.h"
 #import "NSParagraphStyle_SKExtensions.h"
 #import "NSGeometry_SKExtensions.h"
+#import "NSGraphics_SKExtensions.h"
 #import "PDFView_SKExtensions.h"
 #import "NSShadow_SKExtensions.h"
 #import "NSView_SKExtensions.h"
@@ -91,6 +92,8 @@
         [self setContentView:contentView];
         [contentView release];
         
+        SKSetHasDarkAppearance(self);
+        
         NSRect rect = NSMakeRect(BUTTON_MARGIN, BUTTON_MARGIN, BUTTON_WIDTH, 
BUTTON_HEIGHT);
         previousButton = [[SKNavigationButton alloc] initWithFrame:rect];
         [previousButton setTarget:pdfView];

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