summaryrefslogtreecommitdiffstats
path: root/library/ttk
diff options
context:
space:
mode:
authorculler <culler>2019-03-10 03:46:45 (GMT)
committerculler <culler>2019-03-10 03:46:45 (GMT)
commit0d7ad4aa9a15ecef728ce891f752dbb786cf469d (patch)
tree571cf8b7a0741860ccf09f51eb59fa658bc57fab /library/ttk
parentf0e41e0b182797c82d84310e554e2c208753b703 (diff)
downloadtk-0d7ad4aa9a15ecef728ce891f752dbb786cf469d.zip
tk-0d7ad4aa9a15ecef728ce891f752dbb786cf469d.tar.gz
tk-0d7ad4aa9a15ecef728ce891f752dbb786cf469d.tar.bz2
Added a drawing procedure to make LabelFrame and Notebook panes render correctly in Dark Mode. Fixed
a bug in the computation of background colors, where alpha was accidentally being modified.
Diffstat (limited to 'library/ttk')
-rw-r--r--library/ttk/aquaTheme.tcl9
1 files changed, 5 insertions, 4 deletions
diff --git a/library/ttk/aquaTheme.tcl b/library/ttk/aquaTheme.tcl
index 3556c6b..92cc0d1 100644
--- a/library/ttk/aquaTheme.tcl
+++ b/library/ttk/aquaTheme.tcl
@@ -17,20 +17,21 @@ namespace eval ttk::theme::aqua {
ttk::style map . \
-foreground {disabled systemTtkForeground
background systemTtkForeground} \
- -selectbackground {background systemHighlightSecondary
+ -selectbackground {background systemHighlight
!focus systemHighlightSecondary} \
-selectforeground {background systemTtkForeground
!focus systemDialogActiveText}
+ # Buttons
+ ttk::style configure TButton -anchor center -width -6
+ ttk::style configure Toolbutton -padding 4 -foreground black
# Workaround for #1100117:
# Actually, on Aqua we probably shouldn't stipple images in
# disabled buttons even if it did work...
ttk::style configure . -stipple {}
- ttk::style configure TButton -anchor center -width -6
-
- ttk::style configure Toolbutton -padding 4 -foreground black
+ # Notebook
ttk::style configure TNotebook -tabmargins {10 0} -tabposition n
ttk::style configure TNotebook -padding {18 8 18 17}
ttk::style configure TNotebook.Tab -padding {12 3 12 2}