replace old Split component

This commit is contained in:
🪞👃🪞 2024-09-10 23:12:02 +03:00
parent e845d252b7
commit 60406e1d32
9 changed files with 141 additions and 107 deletions

View file

@ -82,10 +82,12 @@ impl Widget for ArrangerStandalone<Tui> {
let area = to.area();
let sequencer = self.arranger.sequencer()
.map(|t|t as &dyn Widget<Engine = Tui>);
let result = Split::down()
.add_ref(&self.transport)
.add_ref(&self.arranger)
.add_ref(&sequencer)
let result = Split::down(|add|{
add(&self.transport)?;
add(&self.arranger)?;
add(&sequencer)?;
Ok(())
})
//.focus(Some(self.focus))
.render(to)?;
if let Some(ref modal) = self.arranger.modal {