comparison dwtest.c @ 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 663467f6eee4
children abbda3db3a3c
comparison
equal deleted inserted replaced
2212:f903f7576e9d 2213:0132afc8c955
1804 1804
1805 /* Setup the Application ID for sending notifications */ 1805 /* Setup the Application ID for sending notifications */
1806 dw_app_id_set("org.dbsoft.dwindows.dwtest", "Dynamic Windows Test"); 1806 dw_app_id_set("org.dbsoft.dwindows.dwtest", "Dynamic Windows Test");
1807 1807
1808 /* Enable full dark mode on platforms that support it */ 1808 /* Enable full dark mode on platforms that support it */
1809 dw_feature_set(DW_FEATURE_DARK_MODE, DW_DARK_MODE_FULL); 1809 if(getenv("DW_DARK_MODE"))
1810 dw_feature_set(DW_FEATURE_DARK_MODE, DW_DARK_MODE_FULL);
1810 1811
1811 /* Initialize the Dynamic Windows engine */ 1812 /* Initialize the Dynamic Windows engine */
1812 dw_init(TRUE, argc, argv); 1813 dw_init(TRUE, argc, argv);
1813 1814
1814 /* Test all the features and display the results */ 1815 /* Test all the features and display the results */