mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
name focused section in sequencer status bar
This commit is contained in:
parent
e4027619e8
commit
bbd784f58b
2 changed files with 27 additions and 6 deletions
|
|
@ -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()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue