fix: time-based theme and background switching

This commit is contained in:
Bot
2026-04-16 21:40:32 +08:00
parent 42f62f7d5b
commit 01ca9f155e
+3
View File
@@ -59,6 +59,9 @@ const MainApp: React.FC = () => {
window.CustomBackgroundImage = config.background_image_day;
}
window.CustomMobileBackgroundImage = window.CustomBackgroundImage;
// 设置强制主题
window.ForceTheme = isNight ? "dark" : "light";
}
}, [settingData]);