summaryrefslogtreecommitdiffstats
path: root/generic/ttk
diff options
context:
space:
mode:
authorculler <culler>2019-03-26 16:06:55 (GMT)
committerculler <culler>2019-03-26 16:06:55 (GMT)
commit7ffe9f76440019f4fea87c29f2b42a543066ea3b (patch)
treecbe816425380c59d32984b309919c949143be3cb /generic/ttk
parent524655affdae491aad1119f37f59df0109de17e8 (diff)
downloadtk-7ffe9f76440019f4fea87c29f2b42a543066ea3b.zip
tk-7ffe9f76440019f4fea87c29f2b42a543066ea3b.tar.gz
tk-7ffe9f76440019f4fea87c29f2b42a543066ea3b.tar.bz2
Add a few more semantic colors to make ttk::Entry and ttk::Treeview work
in dark mode.
Diffstat (limited to 'generic/ttk')
-rw-r--r--generic/ttk/ttkTheme.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/ttk/ttkTheme.h b/generic/ttk/ttkTheme.h
index 9251dea..cf0a07c 100644
--- a/generic/ttk/ttkTheme.h
+++ b/generic/ttk/ttkTheme.h
@@ -29,9 +29,13 @@ extern "C" {
* +++ Defaults for element option specifications.
*/
#define DEFAULT_FONT "TkDefaultFont"
+#ifdef MAC_OSX_TK
+#define DEFAULT_BACKGROUND "systemTextBackgroundColor"
+#define DEFAULT_FOREGROUND "systemTextColor"
+#else
#define DEFAULT_BACKGROUND "#d9d9d9"
#define DEFAULT_FOREGROUND "black"
-
+#endif
/*------------------------------------------------------------------------
* +++ Widget states.
* Keep in sync with stateNames[] in tkstate.c.