diff options
author | culler <culler> | 2019-03-18 17:39:52 (GMT) |
---|---|---|
committer | culler <culler> | 2019-03-18 17:39:52 (GMT) |
commit | 166f5c30a43eedc50130c564fe27d80c8ca12bbe (patch) | |
tree | d3287126e583575b8988d870b201ff9574905273 /library/ttk | |
parent | 446875a3bad587fe6e6388f6576d12246df14154 (diff) | |
download | tk-166f5c30a43eedc50130c564fe27d80c8ca12bbe.zip tk-166f5c30a43eedc50130c564fe27d80c8ca12bbe.tar.gz tk-166f5c30a43eedc50130c564fe27d80c8ca12bbe.tar.bz2 |
Patched up the combobox behavior, without a special drawing procedure for Dark Mode.
Diffstat (limited to 'library/ttk')
-rw-r--r-- | library/ttk/aquaTheme.tcl | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/library/ttk/aquaTheme.tcl b/library/ttk/aquaTheme.tcl index 5343671..182af76 100644 --- a/library/ttk/aquaTheme.tcl +++ b/library/ttk/aquaTheme.tcl @@ -61,7 +61,21 @@ namespace eval ttk::theme::aqua { !selected systemControlTextColor} # Combobox: - ttk::style configure TCombobox -postoffset {5 -2 -10 0} + # We do not have a drawing procedure for Dark Comboboxes. + # This fakes the color in Dark Mode by using the system + # background color for (light) inactive widgets, and uses a + # white background for active Comboboxes, even in Dark Mode. + ttk::style configure TCombobox -selectforeground black + ttk::style map TCombobox \ + -foreground { + disabled systemDisabledControlTextColor + focus black + {} black + !active systemControlTextColor + } \ + -selectbackground { + !focus white + } # Treeview: ttk::style configure Heading -font TkHeadingFont |