mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
focus is weird
This commit is contained in:
parent
f5d02f9f08
commit
7b568c55b8
4 changed files with 24 additions and 27 deletions
|
|
@ -62,8 +62,8 @@ pub fn render (state: &Transport, buf: &mut Buffer, mut area: Rect)
|
|||
{
|
||||
//area.x = area.width.saturating_sub(80) / 2;
|
||||
//area.width = area.width.min(80);
|
||||
area.height = 5;
|
||||
//draw_box(buf, area);
|
||||
area.height = 3;
|
||||
draw_box(buf, area);
|
||||
let label = Style::default().white().not_dim();
|
||||
let border = Style::default().gray().dim();
|
||||
let mut x = 2;
|
||||
|
|
@ -79,13 +79,12 @@ pub fn render (state: &Transport, buf: &mut Buffer, mut area: Rect)
|
|||
state.timebase.tempo() % 1000,
|
||||
)
|
||||
].iter() {
|
||||
buf.set_string(area.x + x, area.y + 2, button, label);
|
||||
buf.set_string(area.x + x, area.y + 1, button, label);
|
||||
x = x + button.len() as u16 + 1;
|
||||
buf.set_string(area.x + x, area.y + 1, "│", border);
|
||||
buf.set_string(area.x + x, area.y + 2, "│", border);
|
||||
buf.set_string(area.x + x, area.y + 3, "│", border);
|
||||
x = x + 2;
|
||||
}
|
||||
Ok(area)
|
||||
//buf.set_string(area.x, area.y + 5, "Witty Gerbil - Sha Na Na", label.bold());
|
||||
//&format!(" │ 00:00.00 / 00:00.00"), style);
|
||||
//draw_leaf(buf, area, 1, 0, "REC");
|
||||
|
|
@ -171,7 +170,6 @@ pub fn render (state: &Transport, buf: &mut Buffer, mut area: Rect)
|
|||
//None => String::from("(none)")
|
||||
//}).render(area.clone().offset(Offset { x: 50, y: 2 }), buf);
|
||||
//}
|
||||
Ok(area)
|
||||
}
|
||||
|
||||
//pub fn render (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue