detach all layout constructors from engine

This commit is contained in:
🪞👃🪞 2024-12-30 13:48:51 +01:00
parent 61b447403b
commit e0e680eb7c
19 changed files with 487 additions and 520 deletions

View file

@ -44,7 +44,7 @@ render!(<Tui>|self: SequencerTui|{
let w = self.size.w();
let phrase_w = if w > 60 { 20 } else if w > 40 { 15 } else { 10 };
let pool_w = if self.phrases.visible { phrase_w } else { 0 };
let pool = Tui::pull_y(1, Fill::h(Align::e(PoolView(&self.phrases))));
let pool = Pull::y(1, Fill::h(Align::e(PoolView(&self.phrases))));
let with_pool = move|x|Split::w(false, pool_w, pool, x);
let status = SequencerStatus::from(self);
let with_status = |x|Split::n(false, if self.status { 2 } else { 0 }, status, x);
@ -66,7 +66,7 @@ render!(<Tui>|self: SequencerTui|{
PhraseSelector::next_phrase(&self.player),
]));
Tui::min_y(15, with_size(with_status(col!([
Min::y(15, with_size(with_status(col!([
toolbar,
play_queue,
editor,