update layout macro invocations

This commit is contained in:
🪞👃🪞 2024-12-31 04:37:45 +01:00
parent e677d1d7d4
commit 83eb9dd2fa
19 changed files with 153 additions and 169 deletions

View file

@ -69,7 +69,7 @@ render!(Tui: (self: PianoHorizontal) => {
let notes = move||PianoHorizontalNotes(self);
let cursor = move||PianoHorizontalCursor(self);
let border = Fill::xy(Outer(Style::default().fg(self.color.dark.rgb).bg(self.color.darkest.rgb)));
let with_border = |x|lay!([border, Padding::xy(0, 0, &x)]);
let with_border = |x|lay!(border, Padding::xy(0, 0, &x));
with_border(lay!(
Push::x(0, row!(
//" ",
@ -84,13 +84,13 @@ render!(Tui: (self: PianoHorizontal) => {
)),
Bsp::e(
Fixed::x(self.keys_width, keys()),
Fill::xy(lay!([
Fill::xy(lay!(
&self.size,
Fill::xy(lay!(
Fill::xy(notes()),
Fill::xy(cursor()),
))
])),
)),
),
)))
))