style(music): theme-colored skip glyphs in player bar + drawer
The skip-back/forward buttons rendered orange in every theme because the emoji glyphs ⏮/⏭ (U+23EE/U+23ED) are drawn by the system color-emoji font, which ignores the button's text color. Replace them with |◀ / ▶| built from the text-presentation triangles ◀/▶ (U+25C0/U+25B6) — the same family the play button already uses — so they honor .color() and follow the active theme like the play button does. Applies to both the now-playing player bar and the full music drawer panel. Pure visual change; no behavior change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+4
-4
@@ -5567,7 +5567,7 @@ fn view(state: &AppState) -> Element<'_, AppMessage> {
|
||||
.unwrap_or_else(|| "--:--".to_string());
|
||||
column![
|
||||
row![
|
||||
button(text("⏮").size(13))
|
||||
button(text("|◀").size(13))
|
||||
.on_press(AppMessage::MusicPrev)
|
||||
.style(b_style(color_surface, color_blue, color_text, 6.0))
|
||||
.padding(7),
|
||||
@@ -5575,7 +5575,7 @@ fn view(state: &AppState) -> Element<'_, AppMessage> {
|
||||
.on_press(AppMessage::MusicPlayPause)
|
||||
.style(b_style(color_blue, color_lavender, color_crust, 6.0))
|
||||
.padding(7),
|
||||
button(text("⏭").size(13))
|
||||
button(text("▶|").size(13))
|
||||
.on_press(AppMessage::MusicNext)
|
||||
.style(b_style(color_surface, color_blue, color_text, 6.0))
|
||||
.padding(7),
|
||||
@@ -5741,7 +5741,7 @@ fn view(state: &AppState) -> Element<'_, AppMessage> {
|
||||
)
|
||||
.width(iced::Length::Fill),
|
||||
row![
|
||||
button(text("⏮").size(13))
|
||||
button(text("|◀").size(13))
|
||||
.on_press(AppMessage::MusicPrev)
|
||||
.style(b_style(color_surface, color_blue, color_text, 6.0))
|
||||
.padding(7),
|
||||
@@ -5749,7 +5749,7 @@ fn view(state: &AppState) -> Element<'_, AppMessage> {
|
||||
.on_press(AppMessage::MusicPlayPause)
|
||||
.style(b_style(color_blue, color_lavender, color_crust, 6.0))
|
||||
.padding(7),
|
||||
button(text("⏭").size(13))
|
||||
button(text("▶|").size(13))
|
||||
.on_press(AppMessage::MusicNext)
|
||||
.style(b_style(color_surface, color_blue, color_text, 6.0))
|
||||
.padding(7),
|
||||
|
||||
Reference in New Issue
Block a user