remove final instance of tui_style!

This commit is contained in:
🪞👃🪞 2024-11-02 20:57:50 +02:00
parent 2f904ed78b
commit 1ab1b695a4
2 changed files with 7 additions and 10 deletions

View file

@ -421,13 +421,6 @@ impl Widget for Styled<&str> {
}
}
#[macro_export] macro_rules! tui_style {
($NAME:ident = $fg:expr, $bg:expr, $ul:expr, $add:expr, $sub:expr) => {
pub const $NAME: Style = Style {
fg: $fg, bg: $bg, underline_color: $ul, add_modifier: $add, sub_modifier: $sub,
};
}
}
pub trait TuiStyle: Widget<Engine = Tui> + Sized {
fn fg (self, color: Color) -> impl Widget<Engine = Tui> {
Layers::new(move |add|{ add(&Foreground(color))?; add(&self) })