mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
Tool options and the selected tool were already remembered (tool_memory, #2814), but each painting tool's own brush (UiState.tool_brushes) was lost at quit, and the tool that owned the session brush restarted as the Brush, so after quitting with the Eraser its brush became the Brush's. - Preferences.toolBrushes {owner, brushes}: saved change-driven when the pointer is up and on exit, restored at launch with stored tips as references (loaded on swap). - brush_cmds::remembered_settings / restored_settings: shared with lastBrush; restored brushes pass the tools.setBrush checks and are clamped (size, hardness, opacity, flow, smoothing). - tool_memory::sanitize clamps restored tool options to their options-bar ranges. - Reset Tool / Reset All Tools clear the persisted state through the same path. - Scorecard UI-217-1 note updated (stays partial: font recents). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>