mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-30 10:16:46 +01:00
A Selection colors row's Styles button opened a menu of its own. It had no search, listed only this file's colour variables and without their collections, and a long list ran off the window. The Fill section's Styles button opens the style picker, which has all of that. The row's button now opens that picker, acting on the row's paints: the picker keeps the row's targets (Picker::colors) and runs the selection.* commands on them instead of the slot commands on the layers. So the row gets the search, this file's styles and each enabled library's under its name, colour variables under their collection (a library's as "library · collection"), and `+`, whose new style is renamed in the picker's editor instead of the row's own Create style window. Variables are offered only for a row of solid paints, within the scopes of its slots (selection_colors::scopes, which in_scope now uses too). selection.bindColorVariable takes `library`, as selection.applyColorStyle does, so a library's colour variable is copied in and bound in one step. Adding a search field and library captions to the row's own menu was rejected: it would keep two pickers for the same choice, and the menu would still differ from the Fill section's in everything else.