mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-04-04 05:10:44 +02:00
new minimal transport bar
This commit is contained in:
parent
d4c96f4b41
commit
7f57465b3a
5 changed files with 141 additions and 376 deletions
|
|
@ -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),
|
||||
)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue