Files
figcraft/crates
叶林橦 50b978b8f9 M4: the colour picker closes like every other detached panel
The picker draws on the shared popover, so it closes the way the popover does: the X,
Escape, and a press outside it.

- A press on the canvas closes it; presses in the panel beside it keep it, since a
  swatch, a style chip or a field there switches the colour it edits.
- The control that opened it is held out of that closing and its rect is refreshed every
  frame, so pressing the same swatch again reaches its own toggle — after the panel
  scrolls too (the bug #730 had, in the picker's hands).
- Escape closes it before the binding deselects the layer, and not while one of its own
  dropdowns is open.

Tests: a press on the canvas closes it, the same swatch closes it again (panel_remove_tests).
2026-10-20 12:24:09 +08:00
..
2026-10-18 12:36:16 +07:00
…
2026-10-17 17:19:51 +07:00
2026-10-18 11:16:43 +07:00