diff options
author | fvogel <fvogelnew1@free.fr> | 2018-09-04 21:38:43 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2018-09-04 21:38:43 (GMT) |
commit | d06fcfb1cd45f43c9e21061593ae4be9ab1753ee (patch) | |
tree | ca15e2d608252f36b31e260caeacef12aa8b2813 /library/ttk/vistaTheme.tcl | |
parent | c154fe3b20f5f20aadabc3910bb77fcff4490981 (diff) | |
download | tk-d06fcfb1cd45f43c9e21061593ae4be9ab1753ee.zip tk-d06fcfb1cd45f43c9e21061593ae4be9ab1753ee.tar.gz tk-d06fcfb1cd45f43c9e21061593ae4be9ab1753ee.tar.bz2 |
Better native looking rendering for the vista theme combobox, as agreed in [05bd7f4da8]. This now really looks like a native combobox on vista, be it in the normal state or disabled state. The previous commit provided a readonly combobox looking native which was moved to the wiki, see [https://wiki.tcl-lang.org/55506]
Diffstat (limited to 'library/ttk/vistaTheme.tcl')
-rw-r--r-- | library/ttk/vistaTheme.tcl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/ttk/vistaTheme.tcl b/library/ttk/vistaTheme.tcl index bd59eb8..ecb39c9 100644 --- a/library/ttk/vistaTheme.tcl +++ b/library/ttk/vistaTheme.tcl @@ -61,18 +61,18 @@ namespace eval ttk::theme::vista { # Combobox ttk::style configure TCombobox -padding 2 - ttk::style element create Combobox.field vsapi \ - COMBOBOX 5 {disabled 4 pressed 3 active 2 hover 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.background vsapi \ + EDIT 3 {disabled 3 readonly 5 focus 4 hover 2 {} 1} ttk::style element create Combobox.rightdownarrow vsapi \ COMBOBOX 6 {disabled 4 pressed 3 active 2 {} 1} \ -syssize {SM_CXVSCROLL SM_CYVSCROLL} ttk::style layout TCombobox { Combobox.border -sticky nswe -border 0 -children { - Combobox.field -sticky nswe -children { - Combobox.rightdownarrow -side right -sticky ns - Combobox.padding -expand 1 -sticky nswe -children { + Combobox.rightdownarrow -side right -sticky ns + Combobox.padding -expand 1 -sticky nswe -children { + Combobox.background -sticky nswe -children { Combobox.focus -expand 1 -sticky nswe -children { Combobox.textarea -sticky nswe } |