Style attributes common to all elements

Common presentation style attributes apply to any graphical element, such as windows, layout containers, or form items.

Important:
Common style attribute apply to basic layout elements such as containers (Group) and form widgets (Label, Button, Edit, CheckBox).

backgroundColor

Defines the color to be used to fill the background of the object.

For possible values, see Colors.

Default is no value (default background color of the object, or inherited background color).

border

Defines if the widget gets a border.

Values can be "yes" (default) or "no"/"none". The value "none" is equivalent to "no".

Default is no value (the widget gets its default appearance).

This style attribute can for example be used for the IMAGE form item type.

defaultTTFColor

Defines the default color used for TTF icons.

All TTF icons displayed in the form element using this style get the color specified in the attribute.

The value for this attribute must be an RGB specification or a named color as listed in Colors.

When specified for a container such as Window or Group, child elements inherit the color for TTF icons defined by the defaultTTFColor style attribute.

For more details about TTF icon usage see Using a simple image name (centralized icons).

fontFamily

Defines the name of the font.

For possible values, see Font families.

Default is no value (default object font or inherited font).

fontSize

Defines the size of the characters.

For possible values, see Font sizes.

Default is no value (default object font or inherited font).

fontStyle

Defines the style of characters.

For possible values, see Font styles.

Default is no value (default object font or inherited font).

fontWeight

Defines the weight of the characters.

Possible values for font weights depend on the front-end native font names, see Font weights for details.

Default is no value (default object font or inherited font).

textColor

Defines the color to be used to paint the text of the object.

For possible values, see Colors.

Default is no value (default object color or inherited color).

textDecoration

Defines the decoration for the text.

Values can be "overline", "underline" or "line-through".

Default is no value (default object font or inherited font).