diff options
author | fvogel <fvogelnew1@free.fr> | 2018-08-24 19:16:41 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2018-08-24 19:16:41 (GMT) |
commit | 6c0a06a35270d963a660bfe63e9064a34fce5284 (patch) | |
tree | 42b9883e6e1f3d500ed49015faa4bb0eeead6953 /library/ttk | |
parent | 051a544aeccfd4bbb098dbb0846a262a273c01a2 (diff) | |
download | tk-6c0a06a35270d963a660bfe63e9064a34fce5284.zip tk-6c0a06a35270d963a660bfe63e9064a34fce5284.tar.gz tk-6c0a06a35270d963a660bfe63e9064a34fce5284.tar.bz2 |
Better fix for [05bd7f4da8]: using the correct CP_READONLY element makes the combobox look more native with vista theme, in all normal, disabled and pressed states
Diffstat (limited to 'library/ttk')
-rw-r--r-- | library/ttk/vistaTheme.tcl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/library/ttk/vistaTheme.tcl b/library/ttk/vistaTheme.tcl index 37423fc..e8bd8d8 100644 --- a/library/ttk/vistaTheme.tcl +++ b/library/ttk/vistaTheme.tcl @@ -61,10 +61,8 @@ namespace eval ttk::theme::vista { # Combobox ttk::style configure TCombobox -padding 2 - ttk::style element create Combobox.background vsapi \ - EDIT 3 {disabled 3 {} 1} ttk::style element create Combobox.field vsapi \ - COMBOBOX 2 {{} 1} + COMBOBOX 5 {disabled 4 pressed 3 active 2 {} 1} ttk::style element create Combobox.border vsapi \ COMBOBOX 4 {disabled 4 focus 3 active 2 hover 2 {} 1} ttk::style element create Combobox.rightdownarrow vsapi \ @@ -72,8 +70,8 @@ namespace eval ttk::theme::vista { -syssize {SM_CXVSCROLL SM_CYVSCROLL} ttk::style layout TCombobox { Combobox.border -sticky nswe -border 0 -children { - Combobox.rightdownarrow -side right -sticky ns - Combobox.background -sticky nswe -children { + Combobox.field -sticky nswe -children { + Combobox.rightdownarrow -side right -sticky ns Combobox.padding -expand 1 -sticky nswe -children { Combobox.focus -expand 1 -sticky nswe -children { Combobox.textarea -sticky nswe |