comparison dwtest.c @ 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 a3e176450077
children 6e55c6f8d816
comparison
equal deleted inserted replaced
2098:665d87a50eac 2099:296a3872ddd9
1792 ULONG notebookpage7; 1792 ULONG notebookpage7;
1793 ULONG notebookpage8; 1793 ULONG notebookpage8;
1794 ULONG notebookpage9; 1794 ULONG notebookpage9;
1795 DWFEATURE feat; 1795 DWFEATURE feat;
1796 1796
1797 /* Enable full dark mode on platforms that support it */
1798 dw_feature_set(DW_FEATURE_DARK_MODE, 2);
1799
1797 /* Initialize the Dynamic Windows engine */ 1800 /* Initialize the Dynamic Windows engine */
1798 dw_init(TRUE, argc, argv); 1801 dw_init(TRUE, argc, argv);
1799 1802
1800 /* Test all the features and display the results */ 1803 /* Test all the features and display the results */
1801 for(feat=0;feat<DW_FEATURE_MAX && DWFeatureList[feat];feat++) 1804 for(feat=0;feat<DW_FEATURE_MAX && DWFeatureList[feat];feat++)