|
From: Jeff H. <je...@Ac...> - 2006-03-27 20:19:24
|
Vince Darley wrote: > I notice that the default bindings/style for a ttk::label > have the text go grey when it is in the background. How can I > create a new style to apply to a specific label to *not* have > this happen just for the one label (it's a kind of status-bar > with messages the user should always be able to read, even if > a different window is frontmost). This is something that only happens on Aqua, and what you are working with is this: style map . \ -foreground [list disabled "#a3a3a3" background "#a3a3a3"] \ -selectbackground [list background "#c3c3c3" !focus "#c3c3c3"] \ -selectforeground [list background "#a3a3a3" !focus "#000000"] \ ; To get around this for your entire app, do: style map . -foreground [list background black] or just labels, replace '.' with TLabel, or to have a label that is always black (on a case-by-base), do: style default Active.TLabel -foreground black ttk::label -style Active.TLabel ... > Second Q: is it possible to create the smaller, toolbar style > menubuttons in the Aqua style? Like so? style default Slim.Toolbutton -padding 1 ttk::button $w -style Slim.Toolbutton ... Jeff Hobbs, The Tcl Guy, http://www.ActiveState.com/ |