mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 20:26:42 +01:00
reenable sample viewer in groovebox
cleanup unused expose! bindings
This commit is contained in:
parent
f8994d3e2d
commit
e4808f8fc1
8 changed files with 32 additions and 50 deletions
|
|
@ -89,14 +89,14 @@ impl Sampler {
|
|||
draw_list_item(&self.mapped[note])
|
||||
}
|
||||
}
|
||||
pub fn viewer (&self, note_pt: usize) -> impl Content<TuiOut> + use<'_> {
|
||||
draw_viewer(if let Some((_, sample)) = &self.recording {
|
||||
pub fn view_sample (&self, note_pt: usize) -> impl Content<TuiOut> + use<'_> {
|
||||
Outer(true, Style::default().fg(Tui::g(96))).enclose(draw_viewer(if let Some((_, sample)) = &self.recording {
|
||||
Some(sample)
|
||||
} else if let Some(sample) = &self.mapped[note_pt] {
|
||||
Some(sample)
|
||||
} else {
|
||||
None
|
||||
})
|
||||
}))
|
||||
}
|
||||
pub fn status (&self, index: usize) -> impl Content<TuiOut> {
|
||||
draw_status(self.mapped[index].as_ref())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue