and 227e again...
Some checks failed
/ build (push) Has been cancelled

This commit is contained in:
okay stopped screaming 2026-03-28 23:59:17 +02:00
parent c72fe8ab23
commit dcca74a649
3 changed files with 11 additions and 8 deletions

View file

@ -158,6 +158,11 @@ pub trait ClipsView: TracksView + ScenesView {
Self::H_SCENE as usize
} as u16;
let is_selected =
self.selection().track() == Some(track_index) &&
self.selection().scene() == Some(scene_index) &&
self.is_editing();
to.place(&wh_exact(w, y, below(
wh_full(Outer(true, Style::default().fg(outline))),
wh_full(below(
@ -165,9 +170,7 @@ pub trait ClipsView: TracksView + ScenesView {
fg_bg(outline, bg, wh_full("")),
wh_full(origin_nw(fg_bg(fg, bg, bold(true, name)))),
),
wh_full(when(self.selection().track() == Some(track_index)
&& self.selection().scene() == Some(scene_index)
&& self.is_editing(), self.editor())))))));
wh_full(when(is_selected, self.editor().view())))))));
})
}
@ -693,7 +696,7 @@ impl Arrangement {
h_exact(h - 1, wh_full(origin_nw(thunk(|to: &mut Tui|{
for (_index, port) in self.midi_outs().iter().enumerate() {
to.place(&h_exact(1,w_full(east(
origin_w(east("", fg(Rgb(255,255,255),bold(true, port.port_name())))),
origin_w(east("", fg(Rgb(255,255,255), bold(true, port.port_name())))),
w_full(origin_e(format!("{}/{} ",
port.port().get_connections().len(),
port.connections.len())))))));