mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
turn Inset and Outset into Padding and Margin
This commit is contained in:
parent
e0e680eb7c
commit
9fa858f226
9 changed files with 57 additions and 57 deletions
|
|
@ -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()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue