diff options
author | jenglish@flightlab.com <jenglish> | 2008-05-23 20:20:05 (GMT) |
---|---|---|
committer | jenglish@flightlab.com <jenglish> | 2008-05-23 20:20:05 (GMT) |
commit | 9aa258ce9069619562bacf4e48cdb40b6237ecf4 (patch) | |
tree | 38468a3e3f80fe6a337d7e5bef1503a0780d1797 /library/ttk/altTheme.tcl | |
parent | b6f3382c7c4fb10658e36e4cc0a69f317c2e796a (diff) | |
download | tk-9aa258ce9069619562bacf4e48cdb40b6237ecf4.zip tk-9aa258ce9069619562bacf4e48cdb40b6237ecf4.tar.gz tk-9aa258ce9069619562bacf4e48cdb40b6237ecf4.tar.bz2 |
Batch of ttk::treeview enhancements:
+ Added [$tv identify region], [$tv identify element],
and [$tv identify item] subcommands.
+ Simplified bindings.
+ Added [$tv tag has] subcommand.
+ Tag-related display improvements: setting a tag -background
or -foreground no longer overrides selection feedback.
+ Don't need separate 'Item', 'Cell', and 'Row' style
settings anymore, only the base "Treeview" style is used.
Diffstat (limited to 'library/ttk/altTheme.tcl')
-rw-r--r-- | library/ttk/altTheme.tcl | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/library/ttk/altTheme.tcl b/library/ttk/altTheme.tcl index c92e3d5..e604373 100644 --- a/library/ttk/altTheme.tcl +++ b/library/ttk/altTheme.tcl @@ -1,5 +1,5 @@ # -# $Id: altTheme.tcl,v 1.6 2007/12/13 15:27:07 dgp Exp $ +# $Id: altTheme.tcl,v 1.7 2008/05/23 20:20:05 jenglish Exp $ # # Ttk widget set: Alternate theme # @@ -80,15 +80,8 @@ namespace eval ttk::theme::alt { # Treeview: ttk::style configure Heading -font TkHeadingFont -relief raised - ttk::style configure Row -background $colors(-window) - ttk::style configure Cell -background $colors(-window) - ttk::style map Row \ - -background [list selected $colors(-selectbg)] \ - -foreground [list selected $colors(-selectfg)] ; - ttk::style map Cell \ - -background [list selected $colors(-selectbg)] \ - -foreground [list selected $colors(-selectfg)] ; - ttk::style map Item \ + ttk::style configure Treeview -background $colors(-window) + ttk::style map Treeview \ -background [list selected $colors(-selectbg)] \ -foreground [list selected $colors(-selectfg)] ; |