From 7786c2247bc438805ea14531105caa7566c2dee2 Mon Sep 17 00:00:00 2001 From: saschaweiss Date: Tue, 27 Oct 2026 01:11:34 +0100 Subject: [PATCH] fix(ui): keep the Color Picker preview on the document it was opened on A command Color Picker now records the document it was opened on, and its live canvas preview never runs against another document that became active while the picker was open (its layer ids would point elsewhere). Covers the tab-switch gap noted in review. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014QvfaMyAX4i4PbKBMnvFj6 --- crates/ui-egui/src/color_picker_preview.rs | 6 +++++ .../ui-egui/src/color_picker_preview/tests.rs | 22 +++++++++++++++++++ crates/ui-egui/src/color_picker_ui.rs | 5 +++++ 3 files changed, 33 insertions(+) diff --git a/crates/ui-egui/src/color_picker_preview.rs b/crates/ui-egui/src/color_picker_preview.rs index 30dc5bf9f1..7f7b3c3b6d 100644 --- a/crates/ui-egui/src/color_picker_preview.rs +++ b/crates/ui-egui/src/color_picker_preview.rs @@ -108,7 +108,13 @@ pub(crate) fn display_doc(app: &mut PhotocraftApp, idx: usize) -> Option<(Arc