turn Inset and Outset into Padding and Margin

This commit is contained in:
🪞👃🪞 2024-12-30 13:50:49 +01:00
parent e0e680eb7c
commit 9fa858f226
9 changed files with 57 additions and 57 deletions

View file

@ -77,7 +77,7 @@ render!(<Tui>|self: PianoHorizontal|{
let cursor = move||PianoHorizontalCursor(self);
let border = Fill::wh(Outer(Style::default().fg(self.color.dark.rgb).bg(self.color.darkest.rgb)));
let with_border = |x|lay!([border, Inset::xy(0, 0, &x)]);
let with_border = |x|lay!([border, Padding::xy(0, 0, &x)]);
with_border(lay!([
Push::x(0, row!(![
@ -86,7 +86,7 @@ render!(<Tui>|self: PianoHorizontal|{
field("Length:", length.to_string()), " ",
field("Loop:", looped.to_string())
])),
Inset::xy(0, 1, Fill::wh(Bsp::s(
Padding::xy(0, 1, Fill::wh(Bsp::s(
Fixed::h(1, Bsp::e(
Fixed::w(self.keys_width, ""),
Fill::w(timeline()),