layout: replace panel icon with lead element and optional title

This commit is contained in:
2026-11-11 16:26:47 +07:00
parent a0ede5e15a
commit 9326fca63d
5 changed files with 282 additions and 214 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ impl Render for Panel {
}
fn descriptor(tag: &'static str) -> PanelDescriptor {
PanelDescriptor::new(tag, tag, move |_, cx| cx.new(|_| Panel { tag }).into())
PanelDescriptor::new(tag, move |_, cx| cx.new(|_| Panel { tag }).into()).title(tag)
}
struct Harness {