use crate::*; impl Sequencer { const H_KEYS_OFFSET: usize = 5; pub(crate) fn horizontal_draw <'a> (&self, to: &mut Tui) -> Usually<()> { let mut area = to.area(); Split::down() .add_ref(&SequenceName(&self)) .add_ref(&SequenceRange) .add_ref(&SequenceLoopRange) .add_ref(&SequenceNoteRange) .render(to.with_area(area.x(), area.y(), area.h(), 10))?; area.x = area.x() + 10; area.width = area.w().saturating_sub(10); area.height = area.h().min(66); Lozenge(Style::default().fg(Nord::BG2)).draw(to.with_rect(area))?; area.x = area.x() + 1; area.width = area.w().saturating_sub(1); 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))?; Ok(()) } } const STYLE_LABEL: Option