fix arranger highlight

This commit is contained in:
🪞👃🪞 2024-07-13 01:30:18 +03:00
parent 99a9a17524
commit a017d2ca51

View file

@ -77,13 +77,11 @@ impl Arranger {
"".blit(buf, x, y + 1, style)?;
label.blit(buf, x, y, style)?;
if self.selected == ArrangerFocus::Clip(track_index, scene_index) {
let y = area.y;
fill_bg(buf, Rect { x, y, width, height: 1 }, bg)
fill_bg(buf, Rect { x, y, width, height: 2 }, bg)
}
}
if self.selected == ArrangerFocus::Track(track_index) {
let y = 1 + area.y + 2 * track_index as u16;
fill_bg(buf, Rect { x, y, width, height: 2 }, bg)
fill_bg(buf, Rect { x, y: area.y, width, height: 1 }, bg)
}
x = x + width as u16;
}