Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0c1969332 | ||
|
|
d155091eed |
+49
-31
@@ -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),
|
||||
@@ -5729,35 +5729,53 @@ fn view(state: &AppState) -> Element<'_, AppMessage> {
|
||||
.unwrap_or_else(|| "--:--".to_string());
|
||||
let player_bar = container(
|
||||
row![
|
||||
text("♪").size(18).color(color_blue),
|
||||
text(now_playing_label(listening_peer_name, current_track_name))
|
||||
.size(13)
|
||||
.color(color_text)
|
||||
.width(iced::Length::Fill),
|
||||
button(text("⏮").size(13))
|
||||
.on_press(AppMessage::MusicPrev)
|
||||
.style(b_style(color_surface, color_blue, color_text, 6.0))
|
||||
.padding(7),
|
||||
button(text(music_bar_play_label).size(13))
|
||||
.on_press(AppMessage::MusicPlayPause)
|
||||
.style(b_style(color_blue, color_lavender, color_crust, 6.0))
|
||||
.padding(7),
|
||||
button(text("⏭").size(13))
|
||||
.on_press(AppMessage::MusicNext)
|
||||
.style(b_style(color_surface, color_blue, color_text, 6.0))
|
||||
.padding(7),
|
||||
text(format!("{elapsed} / {duration}"))
|
||||
.size(11)
|
||||
.color(color_subtext),
|
||||
button(text(if state.playlist_drawer_open { "⤡" } else { "⤢" }).size(13))
|
||||
.on_press(AppMessage::TogglePlaylistDrawer)
|
||||
.style(b_style(
|
||||
if state.playlist_drawer_open { color_blue } else { color_surface },
|
||||
color_blue,
|
||||
if state.playlist_drawer_open { color_crust } else { color_text },
|
||||
6.0,
|
||||
))
|
||||
.padding(7),
|
||||
container(
|
||||
row![
|
||||
text("♪").size(18).color(color_blue),
|
||||
text(now_playing_label(listening_peer_name, current_track_name))
|
||||
.size(13)
|
||||
.color(color_text),
|
||||
]
|
||||
.spacing(8)
|
||||
.align_y(iced::alignment::Vertical::Center)
|
||||
)
|
||||
.width(iced::Length::Fill),
|
||||
row![
|
||||
button(text("|◀").size(13))
|
||||
.on_press(AppMessage::MusicPrev)
|
||||
.style(b_style(color_surface, color_blue, color_text, 6.0))
|
||||
.padding(7),
|
||||
button(text(music_bar_play_label).size(13))
|
||||
.on_press(AppMessage::MusicPlayPause)
|
||||
.style(b_style(color_blue, color_lavender, color_crust, 6.0))
|
||||
.padding(7),
|
||||
button(text("▶|").size(13))
|
||||
.on_press(AppMessage::MusicNext)
|
||||
.style(b_style(color_surface, color_blue, color_text, 6.0))
|
||||
.padding(7),
|
||||
]
|
||||
.spacing(8)
|
||||
.align_y(iced::alignment::Vertical::Center),
|
||||
container(
|
||||
row![
|
||||
text(format!("{elapsed} / {duration}"))
|
||||
.size(11)
|
||||
.color(color_subtext),
|
||||
button(text(if state.playlist_drawer_open { "⤡" } else { "⤢" }).size(13))
|
||||
.on_press(AppMessage::TogglePlaylistDrawer)
|
||||
.style(b_style(
|
||||
if state.playlist_drawer_open { color_blue } else { color_surface },
|
||||
color_blue,
|
||||
if state.playlist_drawer_open { color_crust } else { color_text },
|
||||
6.0,
|
||||
))
|
||||
.padding(7),
|
||||
]
|
||||
.spacing(8)
|
||||
.align_y(iced::alignment::Vertical::Center)
|
||||
)
|
||||
.width(iced::Length::Fill)
|
||||
.align_x(iced::alignment::Horizontal::Right),
|
||||
]
|
||||
.spacing(8)
|
||||
.align_y(iced::alignment::Vertical::Center)
|
||||
|
||||
Reference in New Issue
Block a user