Apart from the commands to set various paint styles, the right-click menu of the selected style indicator (see Figure 8-1) has several useful commands for dealing with paint. Again, note that the fill swatch (top) and stroke swatch (bottom) are distinct even though their context menus are similar; be sure to right-click the half that you want to change.
Edit fill/stroke . . .
Choosing these commands, as well as simply clicking the fill or stroke swatch, will open the Fill and Stroke dialog.
Last set color
This assigns to the selection the color that was last set on the corresponding paint (e.g., fill or stroke) of any selected object. For example, if you just painted something a particular shade of blue and then realized that you want all your objects to have that fill, select all and call this command from the fill swatch’s right-click menu.
Last selected color
This assigns to the selected object the corresponding paint (e.g., fill or stroke) of the object that was selected before the most recent selection change. For example, select an object whose fill color you like, then select some other object, and use this command on its fill swatch to assign the same color to it.
This replaces the flat color paint by the RGB inversion of the color—for example, white becomes black and yellow becomes blue.
White and Black
These commands simply assign these colors to the paint.
Copy color and Paste color
These commands allow you to exchange objects’ colors via the system clipboard. For example, you can copy one object’s stroke color and assign it to another object’s fill, or paste the color (as a #RRGGBB
string) into any other program where you might need it.
Swap fill and stroke
This command exchanges the fill and stroke paints on selected objects. For example, if a selected object had no stroke and blue fill, after applying this command it will have blue stroke and no fill. This command can be useful when you use both the Pencil (14.2 The Pencil Tool) and the Calligraphic pen (14.3 The Calligraphic Pen Tool) tools for drawing and want the result to use the same color, even though the Pencil creates stroked paths without fill and the Calligraphic pen creates filled paths without stroke.
Unset fill/stroke
Make fill or stroke unset (8.1.1 Paint). Note that this is not the same as removing it.
Remove fill/stroke
Set fill or stroke to none
(8.1.1 Paint). This command has a convenient shortcut: Middle-click the fill or stroke swatch to set the corresponding paint to none
. If the paint is already removed, middle-clicking creates the default fill or stroke (usually black). Apart from the “no paint” swatch on the palette, middle-clicking the selected style indicator is the fastest way to get rid of stroke on selected objects.
Make fill/stroke opaque
Remove any fill opacity or stroke opacity from paint (8.1.2 Opacity). Master opacity (shown by the O control to the right of the swatches) remains unchanged.