Revision: 12435
          http://sourceforge.net/p/skim-app/code/12435
Author:   hofman
Date:     2021-09-30 17:18:38 +0000 (Thu, 30 Sep 2021)
Log Message:
-----------
Do set filters for every viewing, otherwise we need to observe dark mode changes

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

Modified: trunk/SKImageToolTipWindow.m
===================================================================
--- trunk/SKImageToolTipWindow.m        2021-09-30 17:16:57 UTC (rev 12434)
+++ trunk/SKImageToolTipWindow.m        2021-09-30 17:18:38 UTC (rev 12435)
@@ -84,9 +84,6 @@
         context = nil;
         point = NSZeroPoint;
         
-        if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKInvertColorsInDarkModeKey])
-            [[self contentView] setContentFilters:SKColorInvertFilters()];
-        
         [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(orderOut:) 
                                                      
name:NSApplicationWillResignActiveNotification object:NSApp];
     }
@@ -117,11 +114,10 @@
         
         if (RUNNING_AFTER(10_13)) {
             if (isOpaque) {
-                if ([backgroundView window]) {
+                if ([backgroundView window])
                     [self setContentView:[[[NSView alloc] init] autorelease]];
-                    if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKInvertColorsInDarkModeKey])
-                        [[self contentView] 
setContentFilters:SKColorInvertFilters()];
-                }
+                if ([[NSUserDefaults standardUserDefaults] 
boolForKey:SKInvertColorsInDarkModeKey])
+                    [[self contentView] 
setContentFilters:SKColorInvertFilters()];
             } else {
                 if ([backgroundView window] == nil) {
                     if (backgroundView == nil) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to