mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
wip: tek_test again
This commit is contained in:
parent
fa8282a9d5
commit
4c23aed40a
16 changed files with 190 additions and 172 deletions
|
|
@ -15,13 +15,13 @@ impl Sequencer<Tui> {
|
|||
let area = [area.x() + 10, area.y(), area.w().saturating_sub(10), area.h().min(66)];
|
||||
Lozenge(Style::default().fg(Nord::BG2)).draw(to.with_rect(area))?;
|
||||
let area = [area.x() + 1, area.y(), area.w().saturating_sub(1), area.h()];
|
||||
Layered::new()
|
||||
.add_ref(&SequenceKeys(&self))
|
||||
.add_ref(&self.phrase.as_ref().map(|phrase|SequenceTimer(&self, phrase.clone())))
|
||||
.add_ref(&SequenceNotes(&self))
|
||||
.add_ref(&SequenceCursor(&self))
|
||||
.add_ref(&SequenceZoom(&self))
|
||||
.render(to.with_rect(area))?;
|
||||
Layers([
|
||||
&SequenceKeys(&self),
|
||||
&self.phrase.as_ref().map(|phrase|SequenceTimer(&self, phrase.clone())),
|
||||
&SequenceNotes(&self),
|
||||
&SequenceCursor(&self),
|
||||
&SequenceZoom(&self),
|
||||
]).render(to.with_rect(area))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue