mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
modal -> dialog; extract dialog, selection, editor
This commit is contained in:
parent
6286d69824
commit
a3beab0f36
7 changed files with 391 additions and 377 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue