mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
wip: untangling arranger layout
This commit is contained in:
parent
967042e8a6
commit
f920d17058
1 changed files with 9 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue