fix: 顶栏颜色跟随小程序主题并保留跟随系统

This commit is contained in:
2026-08-06 19:54:05 +08:00
parent 9716148f15
commit f4f54a8720
84 changed files with 484 additions and 124 deletions
+20
View File
@@ -256,3 +256,23 @@ page {
border-top: var(--line-card);
box-sizing: border-box;
}
/* ==========================================================
系统主题探测器(跟随系统模式)
以官方 onThemeChange/getAppBaseInfo 为主,这里是 CSS 兜底通道。
========================================================== */
.system-theme-detector {
position: fixed;
left: -9999px;
top: 0;
width: 1px;
height: 1px;
opacity: 0;
pointer-events: none;
}
@media (prefers-color-scheme: dark) {
.system-theme-detector {
opacity: 1;
}
}