mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
wip: half-fix arranger
This commit is contained in:
parent
c159889ad8
commit
d15fcf66cb
1 changed files with 15 additions and 19 deletions
|
|
@ -105,25 +105,21 @@ impl Arranger {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
render!(TuiOut: (self: Arranger) => {
|
render!(TuiOut: (self: Arranger) => {
|
||||||
let pool_size = if self.pool.visible { self.splits[1] } else { 0 };
|
let pool_w = if self.pool.visible { self.splits[1] } else { 0 };
|
||||||
let with_pool = |x|Bsp::w(Fixed::x(pool_size, PoolView(self.pool.visible, &self.pool)), x);
|
let color = self.color;
|
||||||
let status = ArrangerStatus::from(self);
|
self.size.of(
|
||||||
let with_editbar = |x|Bsp::n(Fixed::y(1, MidiEditStatus(&self.editor)), x);
|
Bsp::n(Fixed::y(2, ArrangerStatus::from(self)),
|
||||||
let with_status = |x|Bsp::n(Fixed::y(2, status), x);
|
Bsp::n(Fixed::y(1, MidiEditStatus(&self.editor)),
|
||||||
let with_size = |x|lay!(&self.size, x);
|
Bsp::w(Fixed::x(pool_w, PoolView(self.pool.visible, &self.pool)),
|
||||||
let arranger = ||{
|
col!(
|
||||||
let color = self.color;
|
TransportView::new(true, &self.clock),
|
||||||
lay!(
|
Fill::x(Fixed::y(20, lay!(
|
||||||
Fill::xy(Tui::bg(color.darkest.rgb, "")),
|
Fill::xy(Tui::bg(color.darkest.rgb, "")),
|
||||||
Fill::xy(Outer(Style::default().fg(color.dark.rgb).bg(color.darkest.rgb))),
|
Fill::xy(Outer(Style::default().fg(color.dark.rgb).bg(color.darkest.rgb))),
|
||||||
Self::render_mode(self),
|
Self::render_mode(self),
|
||||||
)
|
))),
|
||||||
};
|
Fill::xy(&"FIXME: editor"),
|
||||||
with_size(with_status(with_editbar(with_pool(col!(
|
)))))
|
||||||
TransportView::new(true, &self.clock),
|
|
||||||
Fill::x(Fixed::y(20, arranger())),
|
|
||||||
Fill::xy(&self.editor),
|
|
||||||
)))))
|
|
||||||
});
|
});
|
||||||
audio!(|self: Arranger, client, scope|{
|
audio!(|self: Arranger, client, scope|{
|
||||||
// Start profiling cycle
|
// Start profiling cycle
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue