border style macro

This commit is contained in:
🪞👃🪞 2024-07-09 19:58:13 +03:00
parent afa2a2fd2b
commit 117f4d5363
4 changed files with 123 additions and 139 deletions

View file

@ -97,8 +97,7 @@ impl<'a> ChainView<'a> {
} else {
style
};
lozenge_left(buf, x + x2, y, frame.height, style);
lozenge_right(buf, x + x2 + frame.width - 1, y, frame.height, style);
LozengeV(style.unwrap_or(Style::default())).draw(buf, frame);
//let mut y2 = 1u16;
//for port in device.midi_outs()?.iter() {
//port.blit(buf, x + x2 + frame.width, y + y2, Some(Style::default()));
@ -165,7 +164,8 @@ impl<'a> ChainView<'a> {
//}
}
if frames.len() > 0 {
draw_box_styled(buf, frames[track.device], selected);
Lozenge(selected.unwrap_or(Style::default()))
.draw(buf, frames[track.device]);
}
Ok((Rect { x, y: area.y, width: w, height: y - area.y }, frames))