mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
remove last unused ratatui styles
This commit is contained in:
parent
799228e366
commit
ff7ae12405
2 changed files with 1 additions and 10 deletions
|
|
@ -26,10 +26,6 @@ pub const NTH_OCTAVE: [&'static str;11] = [
|
||||||
"-1", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
|
"-1", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
|
||||||
];
|
];
|
||||||
|
|
||||||
tui_style!(GRAY_DIM = Some(Color::Gray), None, None, Modifier::DIM, Modifier::empty());
|
|
||||||
tui_style!(GRAY_NOT_DIM_BOLD = Some(Color::Gray), None, None, Modifier::BOLD, Modifier::DIM);
|
|
||||||
tui_style!(WHITE_NOT_DIM_BOLD = Some(Color::White), None, None, Modifier::BOLD, Modifier::DIM);
|
|
||||||
|
|
||||||
pub fn random_okhsl () -> Okhsl<f32> {
|
pub fn random_okhsl () -> Okhsl<f32> {
|
||||||
let mut rng = thread_rng();
|
let mut rng = thread_rng();
|
||||||
UniformOkhsl::new(
|
UniformOkhsl::new(
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,7 @@ impl Content for TransportToolbar<Tui> {
|
||||||
fn content (&self) -> impl Widget<Engine = Tui> {
|
fn content (&self) -> impl Widget<Engine = Tui> {
|
||||||
lay!(
|
lay!(
|
||||||
self.focus.wrap(self.focused, TransportToolbarFocus::PlayPause, &Styled(
|
self.focus.wrap(self.focused, TransportToolbarFocus::PlayPause, &Styled(
|
||||||
match *self.clock.playing.read().unwrap() {
|
None,
|
||||||
Some(TransportState::Stopped) => Some(GRAY_DIM.bold()),
|
|
||||||
Some(TransportState::Starting) => Some(GRAY_NOT_DIM_BOLD),
|
|
||||||
Some(TransportState::Rolling) => Some(WHITE_NOT_DIM_BOLD),
|
|
||||||
_ => unreachable!(),
|
|
||||||
},
|
|
||||||
match *self.clock.playing.read().unwrap() {
|
match *self.clock.playing.read().unwrap() {
|
||||||
Some(TransportState::Rolling) => "▶ PLAYING",
|
Some(TransportState::Rolling) => "▶ PLAYING",
|
||||||
Some(TransportState::Starting) => "READY ...",
|
Some(TransportState::Starting) => "READY ...",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue