Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/18082

Vanessa6809d6725445
diff --git a/app/stage/auth.html b/app/stage/auth.html
index 828d9d0cfd..459cefdf1b 100644
--- a/app/stage/auth.html
+++ b/app/stage/auth.html
@@ -540,8 +540,14 @@
}
const init = async () => {
+ let isDark = false
if ({{.appearanceModeOS}} && window.matchMedia('(prefers-color-scheme: dark)').matches || {{.appearanceMode}} ===1) {
document.body.classList.add('dark')
+ isDark = true
+ }
+ // 同步外观到原生壳:让 iOS 顶/底条与认证页背景一致
+ if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.changeStatusBar) {
+ window.webkit.messageHandlers.changeStatusBar.postMessage((isDark ? "#1e1e1e" : "#fff") + " " + (isDark ? 1 : 0))
}
if (window.location.hostname !== 'localhost' && window.location.hostname !== '127.0.0.1') {
document.querySelector('.b3-button--white').remove()