mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 13:16:44 +01:00
remove H_KEYS_OFFSET, just use row macro
This commit is contained in:
parent
ee94df78f6
commit
c56758b616
4 changed files with 50 additions and 52 deletions
|
|
@ -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(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue