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