Color Selector dialog

The Color Selector dialog is used to select colors, for example, the foreground and background of widgets. It is accessed by clicking on the buttons relating to color on the left of a resource panel, for example, the Background Color button within the Core Resources Panel.

At the top of the dialog is an area which is used to display the currently selected color. Underneath is a group of sliders which can be used for creating a color out of red, green and blue components; hue, saturation and brightness characteristics can also be controlled when creating a color. If you move the sliders, the color displayed at the top of the dialog changes to reflect your actions.

An alternative method of selecting a color is by name: below and to the left of the sliders is a list of all the colors currently supported by your configuration. Select from the list of available colors. The chosen color is placed into the selection field underneath the list. Again, the top display changes to reflect your chosen color. Underneath the Colors list is a text field which displays the currently selected color.

The Apply button sets the resource value, in the resource panel from which the color selection panel was called, to the value of your chosen color.

To the right of the color selection list is the Color Object specification area. Color objects may be regarded as global color variables. They are a means of binding a color (hot pink) to a name (my_color). You can then specify anywhere in X-Designer that you can also specify a color.

To set up a color object, type the name of the object into the color object text field. Select the color you wish it to be bound to from the list of colors (or mix it using the sliders). Pressing the Bind button associates the color with the object name.

To use an existing color object, either select it from the list of such objects, or type in the object selection field. Once bound, can be typed directly into a color resource field without recourse to the Color Selector dialog.

An existing color object can be associated with a new color by selecting it, choosing a new color, then pressing the Bind button. All occurrences of the color object will be updated in the design.

To delete a color object, select it, then press the Delete button.

NOTES

You may not delete a color object if it is being used within the design: all references to the color object must be replaced or deleted first.

The list of named colors is configuration dependent and may depend upon the location of X client and server within your network.

See also: