mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
wip: component refactor
This commit is contained in:
parent
5082bf9fdf
commit
c18aa2cbbd
14 changed files with 374 additions and 272 deletions
|
|
@ -72,12 +72,12 @@ pub fn render (state: &Transport, buf: &mut Buffer, mut area: Rect)
|
|||
"STOP",
|
||||
"REC",
|
||||
"DUB",
|
||||
"0.0.00",
|
||||
"0:00.000",
|
||||
&format!("BPM {:03}.{:03}",
|
||||
state.timebase.tempo() / 1000,
|
||||
state.timebase.tempo() % 1000,
|
||||
)
|
||||
),
|
||||
"0.0+00",
|
||||
"0:00.000",
|
||||
].iter() {
|
||||
buf.set_string(area.x + x, area.y + 1, button, label);
|
||||
x = x + button.len() as u16 + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue