name focused section in sequencer status bar

This commit is contained in:
🪞👃🪞 2024-11-26 13:27:48 +01:00
parent e4027619e8
commit bbd784f58b
2 changed files with 27 additions and 6 deletions

View file

@ -20,10 +20,15 @@ impl Content for SequencerTui {
impl Content for SequencerStatusBar {
type Engine = Tui;
fn content (&self) -> impl Widget<Engine = Tui> {
row!(
widget(&self.cpu).fg(Color::Rgb(255,128,0)),
widget(&self.sr).fg(Color::Rgb(255,128,0)),
widget(&self.size).fg(Color::Rgb(255,128,0)),
).align_se().fill_x()
let orange = Color::Rgb(255,128,0);
let black = Color::Rgb(0,0,0);
lay!(
widget(&self.mode).bg(orange).fg(black).bold(true),
row!(
widget(&self.cpu).fg(orange),
widget(&self.sr).fg(orange),
widget(&self.size).fg(orange),
).align_se().fill_x()
)
}
}