mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-04-04 13:20:44 +02:00
remove uses of Split, implement Bsp::area
This commit is contained in:
parent
9f7b23a252
commit
aa910540c0
5 changed files with 79 additions and 57 deletions
|
|
@ -103,10 +103,10 @@ 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|Split::w(false, pool_size, PoolView(&self.phrases), x);
|
||||
let with_pool = |x|Bsp::w(Fixed::x(pool_size, PoolView(&self.phrases)), x);
|
||||
let status = ArrangerStatus::from(self);
|
||||
let with_editbar = |x|Split::n(false, 1, MidiEditStatus(&self.editor), x);
|
||||
let with_status = |x|Split::n(false, 2, status, x);
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue