This commit is contained in:
Vanessa 2023-06-26 23:30:53 +08:00
parent 694557fd14
commit f09f1dea39
8 changed files with 8 additions and 8 deletions

View file

@ -296,7 +296,7 @@ const updateMobileTheme = (OSTheme: string) => {
}
}
if (window.siyuan.config.system.container === "ios" && window.webkit?.messageHandlers) {
window.webkit.messageHandlers.changeStatusBar.postMessage((backgroundColor || (mode === 0 ? "#fff" : "#1e1f22")) + " " + mode);
window.webkit.messageHandlers.changeStatusBar.postMessage((backgroundColor || (mode === 0 ? "#fff" : "#1e1e1e")) + " " + mode);
} else if (window.siyuan.config.system.container === "android" && window.JSAndroid) {
window.JSAndroid.changeStatusBarColor(backgroundColor, mode);
}