mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
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 <[email protected]> Model-Effort: Opus 5.5 drove and wrote
This commit is contained in:
1 parent
a45699a4fe
commit
c1a109f894
2 files changed
+4
-3
No files matched your search
@@ -1774,11 +1774,11 @@ fn delete_row(app: &mut PhotocraftApp, action: usize, step: Option<usize>) -> 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user