Revision: 12421
          http://sourceforge.net/p/skim-app/code/12421
Author:   hofman
Date:     2021-09-28 17:04:57 +0000 (Tue, 28 Sep 2021)
Log Message:
-----------
Allow dark mode scrollers when inverting colors in dark mode. Does not seem to 
work though as the system seems to override something.

Modified Paths:
--------------
    trunk/SKPDFView.m
    trunk/SKSecondaryPDFView.m
    trunk/SKSnapshotPDFView.m

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2021-09-28 14:33:22 UTC (rev 12420)
+++ trunk/SKPDFView.m   2021-09-28 17:04:57 UTC (rev 12421)
@@ -3014,7 +3014,7 @@
 }
 
 - (void)handleScrollerStyleChangedNotification:(NSNotification *)notification {
-    if ([NSScroller preferredScrollerStyle] == NSScrollerStyleLegacy) {
+    if ([NSScroller preferredScrollerStyle] == NSScrollerStyleLegacy || 
[[NSUserDefaults standardUserDefaults] boolForKey:SKInvertColorsInDarkModeKey]) 
{
         SKSetHasDefaultAppearance([[self scrollView] verticalScroller]);
         SKSetHasDefaultAppearance([[self scrollView] horizontalScroller]);
     } else {

Modified: trunk/SKSecondaryPDFView.m
===================================================================
--- trunk/SKSecondaryPDFView.m  2021-09-28 14:33:22 UTC (rev 12420)
+++ trunk/SKSecondaryPDFView.m  2021-09-28 17:04:57 UTC (rev 12421)
@@ -828,7 +828,7 @@
 }
 
 - (void)handleScrollerStyleChangedNotification:(NSNotification *)notification {
-    if ([NSScroller preferredScrollerStyle] == NSScrollerStyleLegacy) {
+    if ([NSScroller preferredScrollerStyle] == NSScrollerStyleLegacy || 
[[NSUserDefaults standardUserDefaults] boolForKey:SKInvertColorsInDarkModeKey]) 
{
         SKSetHasDefaultAppearance([[self scrollView] verticalScroller]);
         SKSetHasDefaultAppearance([[self scrollView] horizontalScroller]);
     } else {

Modified: trunk/SKSnapshotPDFView.m
===================================================================
--- trunk/SKSnapshotPDFView.m   2021-09-28 14:33:22 UTC (rev 12420)
+++ trunk/SKSnapshotPDFView.m   2021-09-28 17:04:57 UTC (rev 12421)
@@ -306,7 +306,7 @@
 }
 
 - (void)handleScrollerStyleChangedNotification:(NSNotification *)notification {
-    if ([NSScroller preferredScrollerStyle] == NSScrollerStyleLegacy) {
+    if ([NSScroller preferredScrollerStyle] == NSScrollerStyleLegacy || 
[[NSUserDefaults standardUserDefaults] boolForKey:SKInvertColorsInDarkModeKey]) 
{
         SKSetHasDefaultAppearance([[self scrollView] verticalScroller]);
         SKSetHasDefaultAppearance([[self scrollView] horizontalScroller]);
     } else {

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