mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
don't overlay with bright green
This commit is contained in:
parent
9abd0b7c50
commit
66483f8371
2 changed files with 4 additions and 2 deletions
|
|
@ -200,7 +200,7 @@ impl<'a> Content for VerticalArranger<'a, Tui> {
|
|||
let mut clip_area: Option<[u16;4]> = None;
|
||||
let area = match selected {
|
||||
ArrangementFocus::Mix => {
|
||||
if focused { to.fill_bg(area, Color::Rgb(40, 50, 30)); }
|
||||
//if focused { to.fill_bg(area, Color::Rgb(40, 50, 30)); }
|
||||
area
|
||||
},
|
||||
ArrangementFocus::Track(t) => { track_area = Some(get_track_area(t)); area },
|
||||
|
|
@ -230,6 +230,8 @@ impl<'a> Content for VerticalArranger<'a, Tui> {
|
|||
} 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)?;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ impl Content for PhraseEditor<Tui> {
|
|||
let offset = Self::H_KEYS_OFFSET as u16;
|
||||
let color = Color::Rgb(0,255,0);
|
||||
let color = phrase.as_ref().map(|p|p.read().unwrap().color).unwrap_or(color);
|
||||
let keys = CustomWidget::new(|_|Ok(Some([32u16,4u16])), move|to: &mut TuiOutput|{
|
||||
let keys = CustomWidget::new(|_|Ok(Some([32u16,0u16])), move|to: &mut TuiOutput|{
|
||||
if to.area().h() >= 2 {
|
||||
to.buffer_update(to.area().set_w(5), &|cell, x, y|{
|
||||
let y = y + note_axis.start as u16;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue