summaryrefslogtreecommitdiffstats
path: root/library/ttk/vistaTheme.tcl
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2009-12-03 23:58:34 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2009-12-03 23:58:34 (GMT)
commit4f22e4e2865a8ef6917cc8a16c3a4041ab2e3b5a (patch)
treeaf01d0a3f9a01d3ce36f35080c91b9855a8d1636 /library/ttk/vistaTheme.tcl
parent11451aec4915dc62cc84ee9caf897dc10818e8c9 (diff)
downloadtk-4f22e4e2865a8ef6917cc8a16c3a4041ab2e3b5a.zip
tk-4f22e4e2865a8ef6917cc8a16c3a4041ab2e3b5a.tar.gz
tk-4f22e4e2865a8ef6917cc8a16c3a4041ab2e3b5a.tar.bz2
Fix the selection of treeview rows on Windows XP and Vista
Diffstat (limited to 'library/ttk/vistaTheme.tcl')
-rw-r--r--library/ttk/vistaTheme.tcl12
1 files changed, 12 insertions, 0 deletions
diff --git a/library/ttk/vistaTheme.tcl b/library/ttk/vistaTheme.tcl
index b96f4a7..9b9418d 100644
--- a/library/ttk/vistaTheme.tcl
+++ b/library/ttk/vistaTheme.tcl
@@ -57,6 +57,18 @@ namespace eval ttk::theme::vista {
-background [list selected SystemHighlight] \
-foreground [list selected SystemHighlightText] ;
+ ttk::style configure Row -background SystemWindow
+ ttk::style configure Cell -background SystemWindow
+ ttk::style map Row \
+ -background [list selected SystemHighlight] \
+ -foreground [list selected SystemHighlightText] ;
+ ttk::style map Cell \
+ -background [list selected SystemHighlight] \
+ -foreground [list selected SystemHighlightText] ;
+ ttk::style map Item \
+ -background [list selected SystemHighlight] \
+ -foreground [list selected SystemHighlightText] ;
+
# Label and Toolbutton
ttk::style configure TLabelframe.Label -foreground "#0046d5"