mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
add --bpm flag
This commit is contained in:
parent
42e2ef2a50
commit
94491a323a
11 changed files with 78 additions and 57 deletions
|
|
@ -38,15 +38,6 @@ render!(Tui: (self: TransportView<'a>) => Outer(
|
|||
OutputStats::new(self.compact, self.clock),
|
||||
)));
|
||||
|
||||
struct Field<'a>(ItemPalette, &'a str, &'a str);
|
||||
render!(Tui: (self: Field<'a>) => row!(
|
||||
Tui::bg(self.0.darkest.rgb, Tui::fg(self.0.darker.rgb, "▐")),
|
||||
Tui::bg(self.0.darker.rgb, Tui::fg(self.0.lighter.rgb,
|
||||
Tui::bold(true, format!("{}", self.1)))),
|
||||
Tui::bg(self.0.darkest.rgb, Tui::fg(self.0.darker.rgb, "▌")),
|
||||
Tui::bg(self.0.darkest.rgb, Tui::fg(self.0.lightest.rgb,
|
||||
Tui::bold(true, format!("{} ", self.2))))));
|
||||
|
||||
pub struct PlayPause { pub compact: bool, pub playing: bool }
|
||||
render!(Tui: (self: PlayPause) => Tui::bg(
|
||||
if self.playing{Color::Rgb(0,128,0)}else{Color::Rgb(128,64,0)},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue