mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-12 22:56:41 +01:00
ui thrashing
This commit is contained in:
parent
acb952736e
commit
20b7267225
18 changed files with 695 additions and 233 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue