From 41b28001af7d83e904c30c9821ececee24f607d2 Mon Sep 17 00:00:00 2001 From: xintaofei Date: Mon, 13 Apr 2026 11:15:13 +0800 Subject: [PATCH] fix(frontend,macos): reduce dark mode white flash on window open Detect dark/light mode before React hydrates to eliminate the visible white-to-dark flash when opening windows in dark mode. Frontend: - Inline script now reads next-themes localStorage key and applies .dark class, colorScheme, and backgroundColor on before first paint - Add CSS-only fallback via prefers-color-scheme media query in an inline