mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +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
|
|
@ -3,7 +3,7 @@ use crate::*;
|
|||
pub struct Bordered<S: BorderStyle, W: Render<Tui>>(pub S, pub W);
|
||||
|
||||
render!(<Tui>|self: Bordered<S: BorderStyle, W: Render<Tui>>|{
|
||||
Fill::wh(lay!([Border(self.0), Inset::xy(1, 1, widget(&self.1))]))
|
||||
Fill::wh(lay!([Border(self.0), Padding::xy(1, 1, widget(&self.1))]))
|
||||
});
|
||||
|
||||
pub struct Border<S: BorderStyle>(pub S);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue