mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-09-18 04:46:43 +02:00
fix button_2/button_3
This commit is contained in:
parent
8cb41fe4d8
commit
f353cc0388
1 changed files with 7 additions and 3 deletions
10
src/tek.rs
10
src/tek.rs
|
|
@ -873,7 +873,10 @@ mod draw {
|
|||
let c3 = tui_g(96);
|
||||
let c4 = tui_g(255);
|
||||
bold(true, fg_bg(c1, c2,
|
||||
east!(fg(c2, "▐"), key, fg(c3, "▐"), when(!hide, fg_bg(c4, c3, label)))))
|
||||
bar(Split::East, 1u16, fg(c2, "▐"),
|
||||
bar(Split::East, 1u16, key,
|
||||
bar(Split::East, 1u16, fg(c3, "▐"),
|
||||
when(!hide, fg_bg(c4, c3, label)))))))
|
||||
}
|
||||
|
||||
/// ```
|
||||
|
|
@ -891,9 +894,10 @@ mod draw {
|
|||
let c3 = tui_g(96);
|
||||
let c4 = tui_g(255);
|
||||
let c5 = tui_g(128);
|
||||
bold(true, east(
|
||||
bold(true, bar(Split::East, 3u16,
|
||||
fg_bg(c1, c2,
|
||||
east(fg(c2, "▐"), east(key, fg(if editing { c5 } else { c3 }, "▐")))),
|
||||
bar(Split::East, 1u16, fg(c2, "▐"),
|
||||
bar(Split::East, 1u16, key, fg(if editing { c5 } else { c3 }, "▐")))),
|
||||
east(
|
||||
when(!editing, east(fg_bg(c4, c3, label), fg_bg(c5, c3, "▐"),)),
|
||||
east(fg_bg(tui_g(224), c5, value), fg_bg(c5, Reset, "▌"), ))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue