Updating ttk progress bar perl
This page is intended to collect all the information on setting the colors of modern widgets in one place.
This information is sparse, difficult to find, missing, often wrong and is spread out in many places.
For the native Windows themes, you can also get red, yellow and blue progress bars (from ttk::progressbar). # these create new states for windows to allow # blue, yellow and red progress bars ttk::style element create Colored. vsapi \ PROGRESS 5 -padding 8 ttk::style element create Colored. vsapi \ PROGRESS 6 -padding 8 ttk::style layout Horizontal. TProgressbar .myprogressbar1 state user1 ; # blue .myprogressbar2 state user3 ; # red .myprogressbar3 state user2 ; # yellow .myprogressbar1 state ; # default greenttk::style configure TRadiobutton -background color ttk::style configure TRadiobutton -foreground color ttk::style configure TRadiobutton -font namedfont ttk::style map TRadiobutton -background \ [list active color disabled color readonly color] ttk::style map TRadiobutton -foreground \ [list active color disabled color readonly color] ttk::style configure TRadiobutton -indicatorcolor color ttk::style map TRadiobutton -indicatorcolor \ [list selected color pressed color]The base 'indicatorcolor' is the color when the radiobutton is not selected. The 'clam' theme uses:lightcolor : the top and left edge of the slider and as the light color in-between the grab bars.darkcolor : the bottom and right edge of the slider.bordercolor : the border color of the scale, the border color of the slider and the color of the grab bars.
The 'selected' value is the indicator color when the radiobutton is selected. The 'alt' theme uses:background as both the background color and as the slider color.bordercolor is visible below the bottom and to the right of the slider.
The sash -lightcolor and -bordercolor are for the clam theme and the themes derived from the clam theme (aquablue, black, clearlooks, radiance, winxpblue).
The field background can only be changed for non-native and non-graphical themes.-lightcolor and -darkcolor are used by clam-based themes to style the relief colors around the Mac OS X: When using the aqua theme, changing -background does not change the background color, it changes the fieldbackground color.
With respect to font settings, for the 'entry/field' font, the usual configuration of the global style (' TCombo Box' here)Note that the Popdown Window command will create the popdown window, and if your screen is not fully initialized, the popdown window may be created with the incorrect font and possibly in the incorrect position.
You can use:ttk::style configure TEntry -background color ttk::style configure TEntry -foreground color ttk::style configure TEntry -fieldbackground color ttk::style configure TEntry -selectbackground color ttk::style configure TEntry -selectforeground color ttk::style configure TEntry -bordercolor color ttk::style map TEntry -background \ [list disabled color readonly color] ttk::style map TEntry -foreground \ [list disabled color readonly color] ttk::style map TEntry -fieldbackground \ [list disabled color readonly color] .entry configure -font namedfont The field background can only be changed for non-native and non-graphical themes.
Whereas '-selectbackground' and '-selectforeground' (which apply to 'selected' text) can be used with the configure command, in using the options database for the associated listbox, we must use the appropriate database names of 'select Background' and 'select Foreground' respectively, and note that database names appear to be case sensitive (see Cmd/for the full list).
The above 'select Foreground' and 'select Background' options of the associated listbox are used to implement the standard 'hover' effect when selecting via mouse pointer.-lightcolor and -darkcolor are used by the clam theme (and perhaps others) to style the relief frame around the arrow.