forked from Keelrleek/SoulStream
mini player + dark glass: eight shapes run by the hidden main as the one brain, dissolving covers and accents, drag from anywhere, and the space between the panes turned to real acrylic - with the webview flags that keep rest frames honest
This commit is contained in:
1 parent
9b84b30aef
commit
dc7ea16b22
33 files changed
+2432
-5
No files matched your search
@@ -27,6 +27,39 @@ mod ytdlp;
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
// Two WebView2 presentation fixes, both delivered by env var because
|
||||
// tauri.conf's additionalBrowserArgs never reaches the browser process
|
||||
// (verified via its command line). Merge, don't clobber — dev launches
|
||||
// carry the CDP port here. Both found 2026-08-26 via the dark-glass work:
|
||||
//
|
||||
// 1. NO delegated compositing: with it, DWM composes the webview's layers
|
||||
// at rest and blends semi-transparent darks in the wrong colorspace —
|
||||
// the app rested washed-out LIGHT and looked correct only while an
|
||||
// animation forced Chromium to compose in-process.
|
||||
// 2. Force the sRGB color profile: on an HDR display the MAXIMIZED
|
||||
// window's rest path takes a different SDR-white tone mapping than
|
||||
// the animated path — covers blew out near-white at rest and snapped
|
||||
// correct on hover. One profile, one mapping, both paths agree.
|
||||
#[cfg(windows)]
|
||||
{
|
||||
const KEY: &str = "WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS";
|
||||
let mut args = std::env::var(KEY).unwrap_or_default();
|
||||
let mut ensure = |flag: &str, key: &str| {
|
||||
if !args.contains(key) {
|
||||
if !args.is_empty() {
|
||||
args.push(' ');
|
||||
}
|
||||
args.push_str(flag);
|
||||
}
|
||||
};
|
||||
ensure(
|
||||
"--disable-features=msWebOOUI,msPdfOOUI,msSmartScreenProtection,DelegatedCompositing",
|
||||
"DelegatedCompositing",
|
||||
);
|
||||
ensure("--force-color-profile=srgb", "force-color-profile");
|
||||
std::env::set_var(KEY, args);
|
||||
}
|
||||
|
||||
tauri::Builder::default()
|
||||
.manage(state::AppState::default())
|
||||
.setup(|app| {
|
||||
@@ -108,6 +141,9 @@ pub fn run() {
|
||||
commands::unfollow_artist,
|
||||
commands::home_artist_news,
|
||||
commands::home_warm,
|
||||
commands::mini_open,
|
||||
commands::mini_close,
|
||||
commands::window_glass,
|
||||
playlists::list_playlists,
|
||||
playlists::create_playlist,
|
||||
playlists::rename_playlist,
|
||||
|
||||
Reference in new issue
Block a user