mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-11-04 09:00:21 +00:00
fix: time-based theme and background switching
This commit is contained in:
1 parent
42f62f7d5b
commit
01ca9f155e
1 file changed
+3
@@ -59,6 +59,9 @@ const MainApp: React.FC = () => {
|
||||
window.CustomBackgroundImage = config.background_image_day;
|
||||
}
|
||||
window.CustomMobileBackgroundImage = window.CustomBackgroundImage;
|
||||
|
||||
// 设置强制主题
|
||||
window.ForceTheme = isNight ? "dark" : "light";
|
||||
}
|
||||
}, [settingData]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user