UI: Compact and align effect parameter rows

This commit is contained in:
cdinhoo
2026-10-09 16:09:13 +03:00
parent 29c4d3ad15
commit b6cf4a8a60
7 changed files with 215 additions and 11 deletions
+5
View File
@@ -2196,6 +2196,7 @@ pub fn show(app: &mut EffectcraftApp, ui: &mut egui::Ui, rect: Rect) {
}
RowKind::Prop { uid } => {
let Some(prop) = layer.props.find(*uid) else { continue };
app.auto.add(&format!("timeline.prop.{uid}.row"), r, &prop.name);
let sel_prop = app.session.state.selected_props.contains(&(layer.id, *uid));
lp.rect_filled(
left,
@@ -2451,6 +2452,10 @@ pub fn show(app: &mut EffectcraftApp, ui: &mut egui::Ui, rect: Rect) {
}
}
}
if !matches!(row.kind, RowKind::Layer) {
widgets::parameter_separator(&lp, left, &t);
widgets::parameter_separator(&gp, Rect::from_min_max(pos2(graph_x0, r.min.y), r.max), &t);
}
}
ui.set_clip_rect(full_clip);
// The background responses sit below rows, bars and editors, preserving their menus.