diff --git a/crates/tek_core/src/tui.rs b/crates/tek_core/src/tui.rs index 52b32808..a0030f61 100644 --- a/crates/tek_core/src/tui.rs +++ b/crates/tek_core/src/tui.rs @@ -402,10 +402,10 @@ impl Widget for Styled<&str> { } } pub trait TuiStyle: Widget + Sized { - fn foreground (self, color: Color) -> impl Widget { + fn fg (self, color: Color) -> impl Widget { Layers::new(move |add|{ add(&Foreground(color))?; add(&self) }) } - fn background (self, color: Color) -> impl Widget { + fn bg (self, color: Color) -> impl Widget { Layers::new(move |add|{ add(&Background(color))?; add(&self) }) } fn border (self, style: impl BorderStyle) -> impl Widget { diff --git a/crates/tek_sequencer/src/sequencer.rs b/crates/tek_sequencer/src/sequencer.rs index 11ead43b..cfdbf2e4 100644 --- a/crates/tek_sequencer/src/sequencer.rs +++ b/crates/tek_sequencer/src/sequencer.rs @@ -1431,7 +1431,7 @@ impl Content for Sequencer { row!(toolbar, content) .fill_x() //.inset_x(1) - .background(Color::Rgb(40,50,30)) + .bg(Color::Rgb(40,50,30)) .border(Lozenge(Style::default() .bg(Color::Rgb(40,50,30)) .fg(Color::Rgb(70,80,50))))