style: 深色模式统一改为纯黑背景,去除泛紫

This commit is contained in:
2026-08-06 16:43:46 +08:00
parent e01951cd0e
commit 501f633102
9 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export function useStatusBar(resolvedTheme: 'light' | 'dark', options: UseStatus
const apply = useCallback(() => {
const isDarkText = mode === 'dark' || (mode === 'auto' && resolvedTheme === 'light')
const frontColor = isDarkText ? '#000000' : '#ffffff'
const bgColor = isDarkText ? '#ffffff' : '#1e1e2f'
const bgColor = isDarkText ? '#ffffff' : '#000000'
Taro.setNavigationBarColor({ frontColor, backgroundColor: bgColor })
// 同步页面背景色,确保自定义导航区(状态栏下方、胶囊按钮区域)跟随主题,