summaryrefslogtreecommitdiffstats
path: root/library/ttk
diff options
context:
space:
mode:
authorcsaba <csaba>2023-09-15 13:46:26 (GMT)
committercsaba <csaba>2023-09-15 13:46:26 (GMT)
commit9b50afff0baafd062957a2f0d31b26ce6591f31c (patch)
treecf75ac0306ba8d71e671c5234962a6de1ae94588 /library/ttk
parent32e664c2e65581dac7dd606bde1dc5d5d4815f9a (diff)
downloadtk-9b50afff0baafd062957a2f0d31b26ce6591f31c.zip
tk-9b50afff0baafd062957a2f0d31b26ce6591f31c.tar.gz
tk-9b50afff0baafd062957a2f0d31b26ce6591f31c.tar.bz2
Made the standard TabElementDraw() function scaling-aware; highlighting the selected tab in the "default" theme.
Diffstat (limited to 'library/ttk')
-rw-r--r--library/ttk/defaults.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/ttk/defaults.tcl b/library/ttk/defaults.tcl
index f09effd..277809f 100644
--- a/library/ttk/defaults.tcl
+++ b/library/ttk/defaults.tcl
@@ -174,7 +174,9 @@ proc ttk::theme::default::reconfigureDefaultTheme {} {
ttk::style configure TNotebook.Tab \
-padding {3p 1.5p} -background $colors(-darker)
ttk::style map TNotebook.Tab \
- -background [list selected $colors(-frame)]
+ -background [list selected $colors(-frame)] \
+ -highlight [list selected 1] \
+ -highlightcolor [list selected $colors(-selectbg)]
# Treeview.
#