light up meters

This commit is contained in:
🪞👃🪞 2025-01-02 23:18:28 +01:00
parent 005bb5fde8
commit d962119e1b
4 changed files with 28 additions and 39 deletions

View file

@ -31,7 +31,13 @@ pub trait BorderStyle: Send + Sync + Copy {
Bordered(self, w)
}
fn enclose <W: Content<Tui>> (self, w: W) -> impl Content<Tui> {
Tui::bg(self.style().unwrap().bg.unwrap_or(Color::Reset), lay!(Fill::xy(Border(self)), w))
lay!(Fill::xy(Border(self)), w)
}
fn enclose_bg <W: Content<Tui>> (self, w: W) -> impl Content<Tui> {
Tui::bg(self.style().unwrap().bg.unwrap_or(Color::Reset), lay!(
Fill::xy(Border(self)),
w
))
}
const NW: &'static str = "";
const N: &'static str = "";