diff dwtest.c @ 1849:b5e1ccc76e58

Added code to set the foreground color on Mac buttons... background color cannot be set, it is image based. Also added defaultly disabled color test code to the testing application.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 01 Jan 2013 23:18:56 +0000
parents 1558f5e14f83
children 5a4d98cab9d3
line wrap: on
line diff
--- a/dwtest.c	Sat Dec 29 05:34:04 2012 +0000
+++ b/dwtest.c	Tue Jan 01 23:18:56 2013 +0000
@@ -964,6 +964,16 @@
     dw_window_set_color(lbbox, DW_CLR_DARKCYAN, DW_CLR_PALEGRAY);
     dw_window_set_color(buttonbox, DW_CLR_DARKCYAN, DW_CLR_PALEGRAY);
     dw_window_set_color(okbutton, DW_CLR_PALEGRAY, DW_CLR_DARKCYAN);
+#ifdef COLOR_DEBUG
+    dw_window_set_color(copypastefield, DW_CLR_WHITE, DW_CLR_RED);
+    dw_window_set_color(copybutton, DW_CLR_WHITE, DW_CLR_RED);
+    /* Set a color then clear it to make sure it clears correctly */
+    dw_window_set_color(entryfield, DW_CLR_WHITE, DW_CLR_RED);
+    dw_window_set_color(entryfield, DW_CLR_DEFAULT, DW_CLR_DEFAULT);
+    /* Set a color then clear it to make sure it clears correctly... again */
+    dw_window_set_color(pastebutton, DW_CLR_WHITE, DW_CLR_RED);
+    dw_window_set_color(pastebutton, DW_CLR_DEFAULT, DW_CLR_DEFAULT);
+#endif
 
     dw_signal_connect(browsefilebutton, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(browse_file_callback), DW_POINTER(notebookbox1));
     dw_signal_connect(browsefolderbutton, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(browse_folder_callback), DW_POINTER(notebookbox1));