Version 13 of ttk::style examples

Updated 2010-09-06 02:25:48 by RLE

Introduction

This page is intended to collect in one place various bits of knowledge gained through much trial, many errors, and some reading the C code of the Tile widget set. The intent is to not have to repeat the trial, error, or reading in order to remember how to utilize the ttk::style command to style various ttk:: widgets.

treeview

-fieldbackground
Configures the background color of the unused portion

of a treeview widget (any area not covered by rows of data).

Example: ttk::style configure Treeview -fieldbackground color

-background
Configures the background color of rows that contain data

values when applied to a .Row style sub-selector.

Example: ttk::style configure Treeview.Row -background color

-foreground
Configures the foreground color used to draw items in

the tree column (#0) when applied to an .Item style sub-selector.
Configures the foreground color used to draw items in the tree column (#0) when applied to an .Item style sub-selector.
Configures the foreground color used to draw non-tree (-values list) columns when applied to a .Cell style sub-selector.

Examples: ttk::style configure Treeview.Item -foreground color ttk::style configure Treeview.Cell -foreground color