mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-08 01:20:59 +00:00
Effect dialogs that take a hex colour (Outer Glow, Inner Glow, Drop Shadow's fields) show a swatch beside the colour field: it follows the field as it is typed, and a double-click opens the Color Picker over the dialog, whose OK fills the field and whose Cancel comes back to the dialog. While the picker is open it previews nothing itself: the effect dialog previews the colour when it returns. The swatch is part of the generic effect parameter grid, so every effect dialog with a colour parameter gets it, and the Color Picker learns to fill one field of a dialog opened over (`over_effect`, a parent like Recolor Artwork's). Test: dialogs::effect::tests::outer_glow_colour_swatch_opens_the_color_picker (swatch drawn on #ffff00, a typed hex recolours it, a double-click opens the picker on it, OK fills Color and the effect applies #00ff00).