Keep artwork visible behind live effect controls

This commit is contained in:
Codex committed 2026-11-30 18:15:06 +01:00
1 parent 11d0f1f3fe
commit 048c3b56a0
1 file changed
+5
+5
View File
@@ -350,9 +350,14 @@ fn launch(app: &mut VectorcraftApp, mut open: Open, baseline: Map<String, Value>
// Free Distort's Reset puts the corners back on the box, wherever they were when it opened.
let reset_to = (id == super::free_distort::FREE_DISTORT)
.then(|| form::fields_of(&rows, &Map::from_iter([("corners".to_string(), json!(super::free_distort::IDENTITY))])));
let canvas = crate::doc_windows::current(app).map(crate::canvas::canvas_id);
let dialog = HostedParamDialog::new(&ctx, "effect", fields, move |f| {
let rows = effect_params(&cx, f);
let dialog = ParamDialog::new("effect", title.clone(), rows).values(Bind::bound(f)).previews(true);
let dialog = match canvas {
Some(canvas) => dialog.canvas(canvas),
None => dialog,
};
let dialog = match &reset_to {
Some(target) => dialog.reset_to(target.clone()),
None => dialog,