remove H_KEYS_OFFSET, just use row macro

This commit is contained in:
🪞👃🪞 2024-10-22 21:30:47 +03:00
parent ee94df78f6
commit c56758b616
4 changed files with 50 additions and 52 deletions

View file

@ -32,8 +32,8 @@ impl Content for ArrangerStatusBar {
Self::ArrangementScene => "SCENE",
Self::ArrangementClip => "CLIP",
Self::PhrasePool => "SEQ LIST",
Self::PhraseView => "SEQ VIEW",
Self::PhraseEdit => "SEQ EDIT",
Self::PhraseView => "VIEW SEQ",
Self::PhraseEdit => "EDIT SEQ",
};
let mode = TuiStyle::bg(format!(" {label} "), Color::Rgb(150, 160, 90))
.fg(Color::Rgb(0, 0, 0))
@ -259,13 +259,13 @@ impl<'a> Content for VerticalArranger<'a, Tui> {
to.render_in(clip_area, &CORNERS)?;
//to.fill_bg(clip_area, Color::Rgb(40, 50, 30));
} else if let Some(track_area) = track_area {
to.render_in(track_area.clip_h(2), &CORNERS)?;
to.render_in(track_area.clip_h(2u16), &CORNERS)?;
//to.fill_bg(track_area, Color::Rgb(40, 50, 30));
} else if let Some(scene_area) = scene_area {
to.render_in(scene_area.clip_w(offset-1), &CORNERS)?;
//to.fill_bg(scene_area, Color::Rgb(40, 50, 30));
} else {
to.render_in(area.clip_w(offset-1).clip_h(2), &CORNERS)?;
to.render_in(area.clip_w(offset-1).clip_h(2u16), &CORNERS)?;
}
}
Ok(())