groovebox: layout
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
🪞👃🪞 2025-05-15 04:51:10 +03:00
parent 7495dd10f2
commit 4ba88bfd6d
5 changed files with 78 additions and 63 deletions

View file

@ -119,13 +119,13 @@ impl Sampler {
}
pub fn view_sample_status (&self, note_pt: usize) -> impl Content<TuiOut> + use<'_> {
Fixed::x(20, draw_info_v(if let Some((_, sample)) = &self.recording {
Fixed::x(20, Outer(true, Style::default().fg(Tui::g(96))).enclose(draw_info_v(if let Some((_, sample)) = &self.recording {
Some(sample)
} else if let Some(sample) = &self.mapped[note_pt] {
Some(sample)
} else {
None
}))
})))
}
pub fn view_status (&self, index: usize) -> impl Content<TuiOut> {