diff options
author | culler <culler> | 2019-03-26 18:11:17 (GMT) |
---|---|---|
committer | culler <culler> | 2019-03-26 18:11:17 (GMT) |
commit | 549747a2a8c86ef81e37f32f1d96cb94b6b99a95 (patch) | |
tree | b2181787dc94b87fe5d7e115c417f4bfa2611238 /library/ttk | |
parent | 7ffe9f76440019f4fea87c29f2b42a543066ea3b (diff) | |
download | tk-549747a2a8c86ef81e37f32f1d96cb94b6b99a95.zip tk-549747a2a8c86ef81e37f32f1d96cb94b6b99a95.tar.gz tk-549747a2a8c86ef81e37f32f1d96cb94b6b99a95.tar.bz2 |
Added a drawing procedure for dark mode comboboxes.
Diffstat (limited to 'library/ttk')
-rw-r--r-- | library/ttk/aquaTheme.tcl | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/library/ttk/aquaTheme.tcl b/library/ttk/aquaTheme.tcl index 50fcd7a..5e04fc6 100644 --- a/library/ttk/aquaTheme.tcl +++ b/library/ttk/aquaTheme.tcl @@ -71,18 +71,22 @@ namespace eval ttk::theme::aqua { !selected systemControlTextColor} # Combobox: - ttk::style configure TCombobox -selectforeground black \ - -background systemTextBackgroundColor + ttk::style configure TCombobox \ + -foreground systemTextColor \ + -background systemTransparent \ + -selectforeground systemSelectedTextColor \ + -selectbackground systemSelectedTextBackgroundColor ttk::style map TCombobox \ -foreground { disabled systemDisabledControlTextColor - focus black - {} black + } \ + -selectforeground { !active systemTextColor } \ -selectbackground { - !focus white - + !active systemTextBackgroundColor + !focus systemTextBackgroundColor + focus systemSelectedTextBackgroundColor } # Treeview: @@ -91,14 +95,6 @@ namespace eval ttk::theme::aqua { -fieldbackground systemTextBackgroundColor \ -background systemTextBackgroundColor \ -foreground systemTextColor - # ttk::style map Treeview \ - # -background { - # disabled systemDialogBackgroundInactive - # {selected background} systemHighlightSecondary - # selected systemHighlight} \ - # -foreground { - # !active black - # } # Enable animation for ttk::progressbar widget: ttk::style configure TProgressbar -period 100 -maxphase 255 |