diff options
author | culler <culler> | 2019-03-26 16:06:55 (GMT) |
---|---|---|
committer | culler <culler> | 2019-03-26 16:06:55 (GMT) |
commit | 7ffe9f76440019f4fea87c29f2b42a543066ea3b (patch) | |
tree | cbe816425380c59d32984b309919c949143be3cb /generic/ttk | |
parent | 524655affdae491aad1119f37f59df0109de17e8 (diff) | |
download | tk-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.h | 6 |
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. |