wip: untangling arranger layout

This commit is contained in:
🪞👃🪞 2025-01-06 21:38:22 +01:00
parent 967042e8a6
commit f920d17058

View file

@ -106,17 +106,17 @@ impl Arranger {
}
render!(TuiOut: (self: Arranger) => {
let pool_w = if self.pool.visible { self.splits[1] } else { 0 };
let color = self.color;
self.size.of(
Bsp::n(Fill::xy(ArrangerStatus::from(self)),
Bsp::s(Fixed::y(1, MidiEditStatus(&self.editor)),
let color = self.color;
let layout = Bsp::a(Fill::xy(ArrangerStatus::from(self)),
Bsp::n(Fixed::x(pool_w, PoolView(self.pool.visible, &self.pool)),
Bsp::n(TransportView::new(true, &self.clock),
Bsp::n(Fill::x(Fixed::y(20, lay!(
Fill::xy(Tui::bg(color.darkest.rgb, "")),
Fill::xy(Outer(Style::default().fg(color.dark.rgb).bg(color.darkest.rgb))),
Self::render_mode(self),
))), Fill::y(&"fixme: self.editor")))))))
Bsp::s(Fixed::y(1, MidiEditStatus(&self.editor)),
Bsp::n(Fill::x(Fixed::y(20,
Bsp::a(Fill::xy(Tui::bg(color.darkest.rgb, "background")),
Bsp::a(
Fill::xy(Outer(Style::default().fg(color.dark.rgb).bg(color.darkest.rgb))),
Self::render_mode(self))))), Fill::y(&"fixme: self.editor"))))));
self.size.of(layout)
});
audio!(|self: Arranger, client, scope|{
// Start profiling cycle