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

@ -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);