mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-13 15:16:41 +01:00
border style macro
This commit is contained in:
parent
afa2a2fd2b
commit
117f4d5363
4 changed files with 123 additions and 139 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue