trying to add skinny black borders around things

This commit is contained in:
🪞👃🪞 2025-01-11 04:26:13 +01:00
parent 9035353893
commit 1fe60bff5f
9 changed files with 845 additions and 532 deletions

View file

@ -33,6 +33,9 @@ pub trait BorderStyle: Send + Sync + Copy {
fn enclose <W: Content<TuiOut>> (self, w: W) -> impl Content<TuiOut> {
lay!(Fill::xy(Border(self)), w)
}
fn enclose2 <W: Content<TuiOut>> (self, w: W) -> impl Content<TuiOut> {
Bsp::b(Margin::xy(1, 1, Fill::xy(Border(self))), w)
}
fn enclose_bg <W: Content<TuiOut>> (self, w: W) -> impl Content<TuiOut> {
Tui::bg(self.style().unwrap().bg.unwrap_or(Color::Reset), lay!(
Fill::xy(Border(self)),
@ -209,6 +212,24 @@ border! {
const S0: &'static str = "";
fn style (&self) -> Option<Style> { Some(self.0) }
},
Phat {
"" "" ""
"" ""
"" "" ""
fn style (&self) -> Option<Style> { Some(self.0) }
},
Rugged {
"" "" ""
"" ""
"" "🮂" ""
fn style (&self) -> Option<Style> { Some(self.0) }
},
Skinny {
"" "" ""
"" ""
"" "" ""
fn style (&self) -> Option<Style> { Some(self.0) }
},
Brackets {
"" "" ""
"" ""