mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 iphone
This commit is contained in:
parent
8c22b13083
commit
13b6b365f4
1 changed files with 2 additions and 2 deletions
|
|
@ -281,7 +281,7 @@ const updateMobileTheme = (OSTheme: string) => {
|
|||
if ((window.siyuan.config.system.container === "ios" && window.webkit?.messageHandlers) ||
|
||||
(window.siyuan.config.system.container === "android" && window.JSAndroid)) {
|
||||
setTimeout(() => {
|
||||
const backgroundColor = getComputedStyle(document.body).getPropertyValue("--b3-theme-background");
|
||||
const backgroundColor = getComputedStyle(document.body).getPropertyValue("--b3-theme-background").trim();
|
||||
let mode = window.siyuan.config.appearance.mode;
|
||||
if (window.siyuan.config.appearance.modeOS) {
|
||||
if (OSTheme === "dark") {
|
||||
|
|
@ -291,7 +291,7 @@ const updateMobileTheme = (OSTheme: string) => {
|
|||
}
|
||||
}
|
||||
if (window.siyuan.config.system.container === "ios" && window.webkit?.messageHandlers) {
|
||||
window.webkit.messageHandlers.changeStatusBar.postMessage(backgroundColor + " " + mode);
|
||||
window.webkit.messageHandlers.changeStatusBar.postMessage((backgroundColor || (mode === 0 ? "#fff" : "#1e1f22")) + " " + mode);
|
||||
} else if (window.siyuan.config.system.container === "android" && window.JSAndroid) {
|
||||
window.JSAndroid.changeStatusBarColor(backgroundColor, mode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue