From c1a109f894e31d71c3293dbf3572a39445a02af4 Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Sun, 8 Nov 2026 15:06:50 -0500 Subject: [PATCH] Actions panel: the drop target is outlined only, so its icon stays visible (#12373) The hover highlight filled the footer button with the opaque hover colour over the icon. It is now a 1.5 px accent outline. control-protocol.md's Actions panel paragraph mentions the two drags. Co-Authored-By: Claude Opus 5.5 Model-Effort: Opus 5.5 drove and wrote --- crates/ui-egui/src/panels/actions.rs | 6 +++--- docs/control-protocol.md | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/panels/actions.rs b/crates/ui-egui/src/panels/actions.rs index 8c411f732f..5a6274a796 100644 --- a/crates/ui-egui/src/panels/actions.rs +++ b/crates/ui-egui/src/panels/actions.rs @@ -1774,11 +1774,11 @@ fn delete_row(app: &mut PhotocraftApp, action: usize, step: Option) -> bo true } -/// Outline a footer button a dragged row would be dropped on. +/// Outline a footer button a dragged row would be dropped on (an outline only, so the icon +/// stays visible). fn drop_target_highlight(ui: &egui::Ui, response: &egui::Response, active: bool, t: &Tokens) { if active && response.contains_pointer() { - ui.painter().rect_filled(response.rect, t.radius_sm, t.hover); - ui.painter().rect_stroke(response.rect, t.radius_sm, Stroke::new(1.0, t.accent), egui::StrokeKind::Inside); + ui.painter().rect_stroke(response.rect, t.radius_sm, Stroke::new(1.5, t.accent), egui::StrokeKind::Inside); } } diff --git a/docs/control-protocol.md b/docs/control-protocol.md index 7ebf31bbe9..230554b536 100644 --- a/docs/control-protocol.md +++ b/docs/control-protocol.md @@ -176,6 +176,7 @@ heading instead targets the whole action. Step deletion also works during record and does not undo the document edit. The control equivalent is `actions.delete {"action": "Name", "step": 0}` (zero-based). Omitting `step` deletes the whole action, which still requires recording to be stopped. +A step or action row dragged onto the trash is deleted without a confirmation, and one dragged onto the plus button is duplicated right after itself (`actions.duplicate`), as in Photoshop. Desktop actions also record and replay View › Fit on Screen (`view.fitOnScreen`), 100% (`view.actualPixels`), Zoom In and Zoom Out through their menu commands or shortcuts.