mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
add focus mode
This commit is contained in:
parent
5b57f2b998
commit
ddff9b3a60
4 changed files with 50 additions and 82 deletions
|
|
@ -13,13 +13,13 @@ render!(Tui: (self: PianoHorizontal) => {
|
|||
};
|
||||
let field = move|x, y|row!(
|
||||
Tui::fg_bg(color.lighter.rgb, color.darker.rgb, Tui::bold(true, x)),
|
||||
Tui::fg_bg(color.lighter.rgb, color.dark.rgb, y),
|
||||
Tui::fg_bg(color.lightest.rgb, color.dark.rgb, format!(" {y} ")),
|
||||
);
|
||||
Bsp::s(
|
||||
Fixed::y(1, row!(
|
||||
field("Edit:", name.to_string()), " ",
|
||||
field("Length:", length.to_string()), " ",
|
||||
field("Loop:", looped.to_string())
|
||||
field(" Edit ", name.to_string()), " ",
|
||||
field(" Length ", length.to_string()), " ",
|
||||
field(" Loop ", looped.to_string())
|
||||
)),
|
||||
Bsp::s(
|
||||
Fixed::y(1, Bsp::e(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue