ui thrashing

This commit is contained in:
🪞👃🪞 2024-07-07 17:55:05 +03:00
parent acb952736e
commit 20b7267225
18 changed files with 695 additions and 233 deletions

View file

@ -30,7 +30,7 @@ impl<'a> Render for ChainView<'a> {
} else {
Color::Reset
});
lozenge_left(buf, x, y, height, style);
//lozenge_left(buf, x, y, height, style);
let (area, _plugins) = if self.track.is_some() {
if self.vertical {
self.draw_as_column(buf, area, style)?
@ -40,7 +40,7 @@ impl<'a> Render for ChainView<'a> {
} else {
(area, vec![])
};
lozenge_right(buf, x + width - 1, y, height, style);
//lozenge_right(buf, x + width - 1, y, height, style);
Ok(area)
}
}
@ -145,7 +145,9 @@ impl<'a> ChainView<'a> {
//y = y + 1;
//}
}
draw_box_styled(buf, frames[track.device], selected);
if frames.len() > 0 {
draw_box_styled(buf, frames[track.device], selected);
}
Ok((Rect { x, y: area.y, width: w, height: y - area.y }, frames))
//let area = Rect { x, y, width: 40, height: 30 };