summaryrefslogtreecommitdiffstats
path: root/library/ttk/winTheme.tcl
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2007-11-18 19:20:24 (GMT)
committerjenglish <jenglish@flightlab.com>2007-11-18 19:20:24 (GMT)
commitaa5ebe3414405d7b4ad1a8271f395866e8a65f79 (patch)
treeaadad427b46a83b0e4b696481aba274e50fec32d /library/ttk/winTheme.tcl
parentd9b51f4b71e2318378ed9a818970213c3b381894 (diff)
downloadtk-aa5ebe3414405d7b4ad1a8271f395866e8a65f79.zip
tk-aa5ebe3414405d7b4ad1a8271f395866e8a65f79.tar.gz
tk-aa5ebe3414405d7b4ad1a8271f395866e8a65f79.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}