color

Defines or overrides a color constant for use within style hints.

Syntax

<color id="color-name" value="color-value"/>


 

Attributes

Attribute

Values

Restrictions

Description

id

string

 

The ID to use when referencing the color. 

value

#RRGGBB

or

#color-constant

or

#RRGGBBAA

 

Value contains a style hint string following the same format used in the color style attribute

Example

The following example defines a color constant ColorBlue and applies it to the background of a button widget.

<color id="VibrantBlue" value="#0000FF"/>

<button name="Blue Button" style="bg#VibrantBlue"/>