element widgets<element id="foreground_color"> <color_picker /> <config> <name>foreground_color</name> </config> </element>
Specifying an element
with a <color_picker/>
creates a new theme widget
which is an
x::w::color_picker
widget.
This is equivalent to invoking the factory's
create_color_picker() method.
An optional config value
initializes
create_color_picker's
x::w::color_picker_config
parameter, as follows:
initial_color
Sets the
x::w::color_picker_config's
initial_color. The value of the
initial_color element is an
id of a
color.
The referenced color must be a plain
RGBA color specification.
<enable_alpha_channel/>
Sets the
x::w::color_picker_config's
enable_alpha_channel
setting to true.
name
The name gives a unique label to this
color picker (a unique label in its window) which identifies the
color picker's configuration. A set
name results in the color picker
settings getting preserved and restored the next time a color
picker gets created in its main window.
appearance
Sets the color picker's appearance
appearance
object.