modal -> dialog; extract dialog, selection, editor

This commit is contained in:
🪞👃🪞 2025-05-04 18:57:31 +03:00
parent 6286d69824
commit a3beab0f36
7 changed files with 391 additions and 377 deletions

View file

@ -6,8 +6,6 @@ impl Content<TuiOut> for Lv2 {
let area = to.area();
let [x, y, _, height] = area;
let mut width = 20u16;
//match &self.plugin {
//Some(PluginKind::LV2(LV2Plugin { port_list, instance, .. })) => {
let start = self.selected.saturating_sub((height as usize / 2).saturating_sub(1));
let end = start + height as usize - 2;
//draw_box(buf, Rect { x, y, width, height });
@ -31,9 +29,6 @@ impl Content<TuiOut> for Lv2 {
break
}
}
//}
//_ => {}
//};
draw_header(self, to, x, y, width);
}
}