mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
fix disappearing input rows
This commit is contained in:
parent
01db41b75d
commit
50c263b4d3
2 changed files with 8 additions and 8 deletions
|
|
@ -131,7 +131,7 @@ impl App {
|
||||||
self.project.view_outputs(self.color))
|
self.project.view_outputs(self.color))
|
||||||
}
|
}
|
||||||
pub fn view_tracks_devices <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
pub fn view_tracks_devices <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||||
Fixed::y(3, self.project.view_track_devices(self.color))
|
Fixed::y(2, self.project.view_track_devices(self.color))
|
||||||
}
|
}
|
||||||
pub fn view_tracks_names <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
pub fn view_tracks_names <'a> (&'a self) -> impl Content<TuiOut> + use<'a> {
|
||||||
Fixed::y(2, self.project.view_track_names(self.color))
|
Fixed::y(2, self.project.view_track_names(self.color))
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,13 @@ impl Arrangement {
|
||||||
h = h.max(self.midi_ins.len() as u16);
|
h = h.max(self.midi_ins.len() as u16);
|
||||||
}
|
}
|
||||||
let h = h + 1;
|
let h = h + 1;
|
||||||
let list = Bsp::s(
|
let list = Fixed::x(20, Fill::y(Stack::south(move|add: &mut dyn FnMut(&dyn Render<TuiOut>)|{
|
||||||
Fixed::y(1, Fill::x(Align::w(button_3("i", "nput ", format!("{}", self.midi_ins.len()), false)))),
|
add(&Fixed::y(1, Align::w(
|
||||||
Fixed::y(h - 1, Fill::x(Align::nw(Stack::south(move|add: &mut dyn FnMut(&dyn Render<TuiOut>)|{
|
button_3("i", "nput ", format!("{}", self.midi_ins.len()), false))));
|
||||||
for (index, port) in self.midi_ins.iter().enumerate() {
|
for (index, port) in self.midi_ins.iter().enumerate() {
|
||||||
add(&Fill::x(Align::w(format!("·i{index:02} {}", port.name()))));
|
add(&Fixed::y(1, Fill::x(Align::w(format!("·i{index:02} {}", port.name())))));
|
||||||
}
|
}
|
||||||
})))));
|
})));
|
||||||
self.view_track_row_section(theme, list, button_2("I", "+", false),
|
self.view_track_row_section(theme, list, button_2("I", "+", false),
|
||||||
Tui::bg(theme.darker.rgb, Align::w(Fill::x(
|
Tui::bg(theme.darker.rgb, Align::w(Fill::x(
|
||||||
Stack::east(move|add: &mut dyn FnMut(&dyn Render<TuiOut>)|{
|
Stack::east(move|add: &mut dyn FnMut(&dyn Render<TuiOut>)|{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue