new minimal transport bar

This commit is contained in:
🪞👃🪞 2025-01-02 11:55:36 +01:00
parent d4c96f4b41
commit 7f57465b3a
5 changed files with 141 additions and 376 deletions

View file

@ -101,7 +101,6 @@ impl ArrangerTui {
}
render!(Tui: (self: ArrangerTui) => {
let play = PlayPause(self.clock.is_rolling());
let transport = TransportView::new(self, Some(ItemPalette::from(TuiTheme::g(96))), true);
let pool_size = if self.phrases.visible { self.splits[1] } else { 0 };
let with_pool = |x|Bsp::w(Fixed::x(pool_size, PoolView(&self.phrases)), x);
let status = ArrangerStatus::from(self);
@ -117,7 +116,7 @@ render!(Tui: (self: ArrangerTui) => {
)
};
with_size(with_status(with_editbar(with_pool(col!(
row!(play, transport),
TransportView(&self.clock),
Fill::x(Fixed::y(20, arranger())),
Fill::xy(&self.editor),
)))))