Use theme in MusicPlayerWidget

This commit is contained in:
mars 2022-11-18 14:30:26 -07:00
parent ef6a81e142
commit 25532f4f9e
1 changed files with 9 additions and 8 deletions

View File

@ -179,7 +179,8 @@ impl MusicPlayerWidget {
text: content.to_string(),
};
let label = Label::new_centered(text, 10.0, Color::BLACK);
let color = style.body.text_color;
let label = Label::new_centered(text, 10.0, color);
Offset::new(label, Vec2::ZERO)
};
@ -196,7 +197,7 @@ impl MusicPlayerWidget {
text,
HorizontalAlignment::Center,
scale,
Color::BLACK,
THEME.palette.text,
0.0,
0.0,
baseline,
@ -225,18 +226,18 @@ impl MusicPlayerWidget {
radius: style.footer.height * 0.3,
spacing: style.footer.height * 0.1,
thickness: style.footer.height * 0.025,
body_color: Color(0xf1b841ff),
ring_color: Color(0xf1b841ff),
icon_color: Color::BLACK,
body_color: THEME.palette.yellow,
ring_color: THEME.palette.yellow,
icon_color: THEME.palette.black,
};
let secondary_button = RoundButtonStyle {
radius: style.footer.height * 0.25,
spacing: style.footer.height * 0.05,
thickness: style.footer.height * 0.025,
body_color: Color::WHITE,
ring_color: Color::BLACK,
icon_color: Color::BLACK,
body_color: style.footer.color,
ring_color: THEME.palette.black,
icon_color: THEME.palette.black,
};
let prev = RoundButton::new(secondary_button.clone(), Some(prev_text));