mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 20:56:43 +01:00
down to 28e, sane ones
This commit is contained in:
parent
46609855eb
commit
16e6a0397c
15 changed files with 91 additions and 87 deletions
|
|
@ -171,7 +171,7 @@ fn draw_sample (
|
|||
}
|
||||
|
||||
impl Content<Tui> for AddSampleModal {
|
||||
fn render (&self, to: &mut TuiOutput) -> Usually<()> {
|
||||
fn render (&self, to: &mut TuiOutput) {
|
||||
todo!()
|
||||
//let area = to.area();
|
||||
//to.make_dim();
|
||||
|
|
|
|||
|
|
@ -52,6 +52,4 @@ render!(Tui: |self: SampleViewer, to|{
|
|||
.y_bounds(y_bounds)
|
||||
.paint(|ctx| { for line in lines.iter() { ctx.draw(line) } })
|
||||
.render(area, &mut to.buffer);
|
||||
|
||||
Ok(())
|
||||
});
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ render!(Tui: |self: SamplesTui, render|{
|
|||
let note = self.note_hi - y as usize;
|
||||
let bg = if note == self.note_pt { bg_selected } else { bg_base };
|
||||
let style = Some(style_empty.bg(bg));
|
||||
render.blit(&" (no sample) ", x, render.area.y() + y as u16, style)
|
||||
render.blit(&" (no sample) ", x, render.area.y() + y as u16, style);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue