The Color panel, the Swatches panel and the Color Picker set the foreground;
like Photoshop, the new colour now also goes to what is selected, depending on
the tool in hand (new apply_color.rs, which the three already call through):
- characters selected while editing type: those characters (as before);
- a Type tool, not editing: every selected type layer (type.setStyle);
- a shape tool, a Pen or a path selection tool: every selected shape layer's
fill (shape.edit);
- any other tool (Move, brushes...): only the foreground.
One pick is one history step for all the layers it recolours; a drag in the
Color panel's field or sliders is one step too (coalesce).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>