From 01ca9f155efc8ab26bf8e213321edd3943b06f75 Mon Sep 17 00:00:00 2001 From: Bot Date: Thu, 16 Apr 2026 21:40:32 +0800 Subject: [PATCH] fix: time-based theme and background switching --- src/App.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index 2213387..7363f71 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -59,6 +59,9 @@ const MainApp: React.FC = () => { window.CustomBackgroundImage = config.background_image_day; } window.CustomMobileBackgroundImage = window.CustomBackgroundImage; + + // 设置强制主题 + window.ForceTheme = isNight ? "dark" : "light"; } }, [settingData]);