feat: official sound settings right-slide, player view skins, and UI polish
This commit is contained in:
parent
5c6a8557b3
commit
8bdb32623f
16 changed files with 850 additions and 203 deletions
|
|
@ -4,6 +4,7 @@ pub mod for_you;
|
|||
pub mod my_vibe;
|
||||
pub mod overlays;
|
||||
pub mod player_bar;
|
||||
pub mod player_thumbs;
|
||||
pub mod podcasts_kids;
|
||||
pub mod search;
|
||||
pub mod settings;
|
||||
|
|
@ -549,17 +550,17 @@ impl YandexMusicShell {
|
|||
ease_out(self.ui.animate_bool(
|
||||
WidgetId::new("ym_quality_popover_anim"),
|
||||
self.app.eq_popover_open,
|
||||
0.18,
|
||||
0.22,
|
||||
))
|
||||
};
|
||||
let eq_expand_t = if self.app.fixed_vibe_time.is_some() {
|
||||
if self.app.config.eq_enabled { 1.0 } else { 0.0 }
|
||||
} else {
|
||||
ease_out(self.ui.animate_bool(
|
||||
self.ui.animate_bool(
|
||||
WidgetId::new("ym_quality_eq_expand"),
|
||||
self.app.config.eq_enabled,
|
||||
0.20,
|
||||
))
|
||||
)
|
||||
};
|
||||
if eq_pop_t > 0.01 {
|
||||
render_eq_popover(
|
||||
|
|
@ -671,9 +672,16 @@ impl YandexMusicShell {
|
|||
}
|
||||
|
||||
// Dispatch all actions emitted during this frame
|
||||
let had_actions = !actions.is_empty();
|
||||
for act in actions {
|
||||
self.app.dispatch(act);
|
||||
}
|
||||
// Any dispatched UI action may open/close a popover, modal, or start an animation
|
||||
// that wasn't evaluated yet this frame — schedule an immediate follow-up frame so
|
||||
// 0 FPS idle mode never stalls opening a menu until the next mouse move.
|
||||
if had_actions {
|
||||
self.ui.request_repaint();
|
||||
}
|
||||
|
||||
// Flush any clipboard write requested by Share > Copy link / HTML code
|
||||
if let Some(clip_text) = self.app.take_pending_clipboard_text() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue