mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-04-04 05:10:44 +02:00
transport compact mode
This commit is contained in:
parent
6776e2ec55
commit
92459b5f82
6 changed files with 134 additions and 83 deletions
|
|
@ -105,14 +105,13 @@ impl ArrangerTui {
|
|||
}
|
||||
}
|
||||
render!(Tui: (self: ArrangerTui) => {
|
||||
let play = PlayPause(self.clock.is_rolling());
|
||||
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);
|
||||
let with_editbar = |x|Bsp::n(Fixed::y(1, MidiEditStatus(&self.editor)), x);
|
||||
let with_status = |x|Bsp::n(Fixed::y(2, status), x);
|
||||
let with_size = |x|lay!(&self.size, x);
|
||||
let arranger = ||{
|
||||
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);
|
||||
let with_editbar = |x|Bsp::n(Fixed::y(1, MidiEditStatus(&self.editor)), x);
|
||||
let with_status = |x|Bsp::n(Fixed::y(2, status), x);
|
||||
let with_size = |x|lay!(&self.size, x);
|
||||
let arranger = ||{
|
||||
let color = self.color;
|
||||
lay!(
|
||||
Fill::xy(Tui::bg(color.darkest.rgb, "")),
|
||||
|
|
@ -121,7 +120,7 @@ render!(Tui: (self: ArrangerTui) => {
|
|||
)
|
||||
};
|
||||
with_size(with_status(with_editbar(with_pool(col!(
|
||||
TransportView(&self.clock),
|
||||
TransportView::new(true, &self.clock),
|
||||
Fill::x(Fixed::y(20, arranger())),
|
||||
Fill::xy(&self.editor),
|
||||
)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue