wip: move more view methods to device trait

This commit is contained in:
🪞👃🪞 2025-05-17 06:06:24 +03:00
parent 17abb3d971
commit b6d1978a55
4 changed files with 166 additions and 143 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, Outer(true, Style::default().fg(Tui::g(96))).enclose(draw_info_v(if let Some((_, sample)) = &self.recording {
Fixed::x(20, 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> {