This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


represents a color setter which displays as a swatch of the specified color and when clicked brings up a system color picker dialog.
uses the dynamically updated current value of color, with the value of color being reset if the color is modified.
gives a color setter with initial color gray.
  • The following options can be given:
BaselinePositionAutomaticalignment relative to surrounding text
BaseStyle{}base style specifications for the color setter
EnabledAutomaticwhether the color setter is enabled, or grayed out
ImageMargins0margins around the image of the displayed color setter
ImageSizeAutomaticthe overall image size of the displayed color setter
  • The settings for BaseStyle are appended to the default style typically given by the style in the current stylesheet.
Use Pink as the initial value:
Dynamically change :
Use Pink as the initial value:
Click for copyable input
Dynamically change :
Click for copyable input
The ColorSetter can be included in graphics:
By default, ColorSetter must be clicked to bring up the color dialog:
By setting AutoAction, the color dialog comes up as the mouse moves over the setter area:
Align with surrounding text:
By default, ColorSetter is enabled:
By setting Enabled->False, the setter is disabled but visible in its current state:
Add margins to the color setter:
Control the overall size of the color setter:
Dynamically use the setting to color graphics elements:
New in 6