fix button_2/button_3

This commit is contained in:
i do not exist 2026-09-15 17:44:10 +03:00
parent 8cb41fe4d8
commit f353cc0388

View file

@ -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, ""), ))))