All docs
V20.1
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Color Picker

  • 2 minutes to read

The CodeRush Color Picker dialog allows you to edit a color in the code editor.

Picker

To open this dialog, click a color sample in the code when Show Color is enabled.

ClickColor

When you have the color you want, click OK to apply the changes. CodeRush replaces the active color reference with a reference to the color selected.

Color Picker

The CodeRush Color Picker dialog consists of the following pages:

  • Picker
  • Named
  • System
  • Document
  • Favorites

Picker

The Picker page allows you to pick a color based on red, green, blue or alpha as shown in the screenshot above. You can also specify the CMYK, HLS or HSB values.

Open Picker

The eye-dropper tool allows you to select a color from an existing image or window appearing on your desktop.

Open Picker

The hue slider allows you to choose a hue.

Hue Slider

You can also use the opacity slider to set an opacity.

Opacity Slider

You can type a color code directly into the text box using a longhand or shorthand hexadecimal notation. For example, "369":

Open Picker

CodeRush also allows you to type HTML color names in the text box (for example, "red", "green", etc.). These names are automatically converted to color codes.

Named Colors

This page shows the .NET colors based on the X11 color names.

Named Colors

You can sort colors by hue, saturation, lightness, and name.

System Colors

The System page contains the system colors.

System Colors

Document Colors

The Document page shows all the colors defined in the active document.

Code

The colors shown in the screenshot above are defined in the following C# class:

Code

Favorites Color

The Favorites page holds favorite colors.

Favorites Page

To add a color to favorites, select the color in the Picker, Named, System or Document page, and click Add to Favorites at the bottom of this dialog.

The following screencast shows how to add the Magenta color from the Named page to Favorites:

Add To Favorites

To remove a color from favorites, select the color in the Favorites page and click Remove color.

Add To Favorites