mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
chore: tidy up
This commit is contained in:
parent
5afed6f055
commit
dc09ea901f
10 changed files with 321 additions and 160 deletions
37
src/device/launcher.rs
Normal file
37
src/device/launcher.rs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
let mut x = areas[1].x;
|
||||
for (index, track) in [
|
||||
"Track 1",
|
||||
"Track 2",
|
||||
"Track 3",
|
||||
"Track 4",
|
||||
"Track 5",
|
||||
"Bus 1",
|
||||
"Bus 2",
|
||||
"Mix",
|
||||
].iter().enumerate() {
|
||||
buffer.set_string(
|
||||
x + 10 * (index + 1) as u16, areas[1].y,
|
||||
"┬", Style::default().not_bold().dim()
|
||||
);
|
||||
buffer.set_string(
|
||||
x + 10 * (index + 1) as u16, areas[1].y + areas[1].height - 1,
|
||||
"┴", Style::default().not_bold().dim()
|
||||
);
|
||||
for y in areas[1].y+1..areas[1].y+areas[1].height - 1 {
|
||||
buffer.set_string(
|
||||
x + 10 * (index + 1) as u16, y,
|
||||
"│", Style::default().not_bold().gray().dim()
|
||||
);
|
||||
}
|
||||
for y in areas[1].y+2..areas[1].y+areas[1].height - 1 {
|
||||
buffer.set_string(
|
||||
x + 10 * index as u16 + 1, y,
|
||||
"--------", Style::default().not_bold().gray().dim()
|
||||
);
|
||||
}
|
||||
buffer.set_string(
|
||||
x + 10 * index as u16 + 1, areas[1].y + 1,
|
||||
track, Style::default().bold().not_dim()
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue