mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
wip: distribute layout operator parsing
This commit is contained in:
parent
4af6e011b6
commit
fa70a42bad
12 changed files with 150 additions and 81 deletions
|
|
@ -112,7 +112,7 @@ pub fn phat_sel_3 <T: Content<TuiOut>> (
|
|||
selected: bool, field_1: T, field_2: T, top: Option<Color>, middle: Color, bottom: Color
|
||||
) -> impl Content<TuiOut> {
|
||||
let border = Style::default().fg(Color::Rgb(255,255,255)).bg(middle);
|
||||
Either(selected,
|
||||
Either::new(selected,
|
||||
Tui::bg(middle, Outer(border).enclose(Align::w(Bsp::s("", Bsp::n("", Fill::y(field_1)))))),
|
||||
Bsp::s(Fixed::y(1, top.map(|top|phat_lo(middle, top))),
|
||||
Bsp::n(Fixed::y(1, phat_hi(middle, bottom)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue