Files
cc-switch/src-tauri
SaladDay d4fefefcb9 fix(windows): eliminate startup white-black flash (FOUC) (#6252)
* fix(windows): eliminate startup white-black flash (FOUC)

Set window backgroundColor to match the dark theme surface so WebView2's
native window layer is dark before any web content paints. Add an inline
anti-FOUC script in index.html to apply the theme class synchronously
before first paint, reading from localStorage with system fallback.
Update CSP script-src to allow the inline script via SHA-256 base64 hash
alongside the existing 'self' source.

Fixes #6182

* fix(windows): show window after themed page loads
2026-08-16 22:08:40 +08:00
..
…
2026-08-06 12:21:00 +08:00
2026-08-06 12:21:00 +08:00