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
|
|
@ -9,7 +9,7 @@ use crate::api::models::*;
|
|||
use crate::api::signing::{extract_oauth_token, generate_request_id, iso8601_now};
|
||||
use crate::api::{open_url_in_browser, YandexApiClient, YANDEX_OAUTH_URL};
|
||||
use crate::audio::AudioEngine;
|
||||
use crate::config::{AppConfig, AudioQuality, Language, PinnedItem, ThemeMode};
|
||||
use crate::config::{AppConfig, AudioQuality, Language, PinnedItem, PlayerThumbStyle, ThemeMode};
|
||||
use crate::telemetry::PerfTelemetry;
|
||||
use crate::vulkan::vibe_renderer::VibePushConstants;
|
||||
|
||||
|
|
@ -378,6 +378,7 @@ pub enum AppAction {
|
|||
SetAiContentReduction(bool),
|
||||
SetChildMode(bool),
|
||||
SetCloseToTray(bool),
|
||||
SetPlayerThumb(PlayerThumbStyle),
|
||||
UpdateEq {
|
||||
enabled: bool,
|
||||
preamp: f32,
|
||||
|
|
@ -1088,6 +1089,13 @@ impl AppState {
|
|||
}
|
||||
|
||||
if playing {
|
||||
// Animated player bar companion (Duck/Car/Claudik/Antigravity/Ferris/Nyan): smooth 30 FPS when focused!
|
||||
if window_focused
|
||||
&& self.config.player_thumb != PlayerThumbStyle::Standard
|
||||
&& !self.fullscreen_open
|
||||
{
|
||||
return Some(Duration::from_millis(33));
|
||||
}
|
||||
// Static pages (Favorites, ForYou, Search, Collection, Fullscreen, Detail):
|
||||
// Progress bar moves ~1px every 150-250ms; no reason to spin GPU at 60 FPS!
|
||||
let lyrics_visible = (self.fullscreen_open && self.fullscreen_lyrics_open)
|
||||
|
|
@ -3130,6 +3138,10 @@ impl AppState {
|
|||
self.config.close_to_tray = v;
|
||||
self.save_config();
|
||||
}
|
||||
AppAction::SetPlayerThumb(style) => {
|
||||
self.config.player_thumb = style;
|
||||
self.save_config();
|
||||
}
|
||||
AppAction::UpdateEq {
|
||||
enabled,
|
||||
preamp,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue