summaryrefslogtreecommitdiffstats
path: root/library/ttk/winTheme.tcl
diff options
context:
space:
mode:
authorjenglish@flightlab.com <jenglish>2007-11-18 19:20:24 (GMT)
committerjenglish@flightlab.com <jenglish>2007-11-18 19:20:24 (GMT)
commit3e0c2057bca9366d9c9bbb6f40028dc68eab4439 (patch)
treeaadad427b46a83b0e4b696481aba274e50fec32d /library/ttk/winTheme.tcl
parent1a117728fcec490d9e949a46aab68159d90719fa (diff)
downloadtk-3e0c2057bca9366d9c9bbb6f40028dc68eab4439.zip
tk-3e0c2057bca9366d9c9bbb6f40028dc68eab4439.tar.gz
tk-3e0c2057bca9366d9c9bbb6f40028dc68eab4439.tar.bz2
* generic/ttk/ttkFrame.c: Use sublayout for ttk::labelframe labels
instead of single element. * generic/ttk/ttkLabel.c: Default -anchor for text and label elements is now "w" instead of "center". Fixes [Bug 1614540]. * library/ttk/defaults.tcl, library/ttk/*Theme.tcl: Button styles now need explicit "-anchor center".
Diffstat (limited to 'library/ttk/winTheme.tcl')
-rw-r--r--library/ttk/winTheme.tcl7
1 files changed, 4 insertions, 3 deletions
diff --git a/library/ttk/winTheme.tcl b/library/ttk/winTheme.tcl
index bd9696b..b39ecb5 100644
--- a/library/ttk/winTheme.tcl
+++ b/library/ttk/winTheme.tcl
@@ -1,5 +1,5 @@
#
-# $Id: winTheme.tcl,v 1.4 2007/10/16 21:00:15 jenglish Exp $
+# $Id: winTheme.tcl,v 1.5 2007/11/18 19:20:26 jenglish Exp $
#
# Settings for 'winnative' theme.
#
@@ -19,11 +19,12 @@ namespace eval ttk::theme::winnative {
ttk::style map "." -foreground [list disabled SystemGrayText] ;
ttk::style map "." -embossed [list disabled 1] ;
- ttk::style configure TButton -width -11 -relief raised -shiftrelief 1
+ ttk::style configure TButton \
+ -anchor center -width -11 -relief raised -shiftrelief 1
ttk::style configure TCheckbutton -padding "2 4"
ttk::style configure TRadiobutton -padding "2 4"
ttk::style configure TMenubutton \
- -padding "8 4" -arrowsize 3 -relief raised -anchor w
+ -padding "8 4" -arrowsize 3 -relief raised
ttk::style map TButton -relief {{!disabled pressed} sunken}