changeset 2213:0132afc8c955

Check for DW_DARK_MODE environment variable to enable full dark mode. This perhaps should be a command line option, but this is easier for the moment.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 13 Dec 2020 13:09:23 +0000
parents f903f7576e9d
children c60588f740ec
files dwtest.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dwtest.c	Sat Dec 12 14:18:46 2020 +0000
+++ b/dwtest.c	Sun Dec 13 13:09:23 2020 +0000
@@ -1806,7 +1806,8 @@
     dw_app_id_set("org.dbsoft.dwindows.dwtest", "Dynamic Windows Test");
 
     /* Enable full dark mode on platforms that support it */
-    dw_feature_set(DW_FEATURE_DARK_MODE, DW_DARK_MODE_FULL);
+    if(getenv("DW_DARK_MODE"))
+        dw_feature_set(DW_FEATURE_DARK_MODE, DW_DARK_MODE_FULL);
 
     /* Initialize the Dynamic Windows engine */
     dw_init(TRUE, argc, argv);