diff mac/dw.m @ 2099:296a3872ddd9

Added a fourth dark mode option on Windows: Disabled, Basic, Full, Forced. Disabled (0) forces dark mode off on Mac and Windows. Enabled (1) System decides but only window frame is dark mode on Windows. Full (2) System decides but everything that can be dark is on Mac and Windows. Forced (3) Force dark mode on Mac and Windows regardless of system setting. Enabled (1) and Full (2) are identical on Mac. Added code to enable full dark mode in the test program. Several widgets are not able to go dark on Windows currently: Notebook, Menubar
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 12 Jun 2020 20:40:47 +0000
parents 68f1924fdd13
children 12a9546c3e03
line wrap: on
line diff
--- a/mac/dw.m	Thu Jun 11 22:21:53 2020 +0000
+++ b/mac/dw.m	Fri Jun 12 20:40:47 2020 +0000
@@ -12683,10 +12683,10 @@
             if(state == DW_FEATURE_DISABLED)
                [DWApp setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameAqua]];
             /* Enabled lets the OS decide the mode */
-            else if(state == DW_FEATURE_ENABLED)
+            else if(state == DW_FEATURE_ENABLED || state == 2)
                [DWApp setAppearance:nil];
             /* 2 forces dark mode aqua appearance */
-            else if(state == 2)
+            else if(state == 3)
                [DWApp setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameDarkAqua]];
             else 
                 return DW_ERROR_GENERAL;