```
refactor(theme): 统一应用深色主题替换日夜切换功能 - 移除白天主题相关样式定义和切换逻辑 - 将主题系统固定为深色主题(琥珀夜光) - 更新页面背景色设置为统一深色 - 简化导航栏和标签栏主题应用逻辑 - 移除白天主题的颜色变量和样式类 - 更新主题混入文件以支持单一深色主题 ```
This commit is contained in:
@@ -26,12 +26,12 @@ export default {
|
||||
console.log('App Hide')
|
||||
},
|
||||
methods: {
|
||||
// 初始化并应用日夜主题
|
||||
// 初始化并应用深色主题
|
||||
initTheme() {
|
||||
const theme = getCurrentTheme()
|
||||
applyTheme(theme)
|
||||
// 同步设置page元素背景色
|
||||
const bgColor = theme === 'light' ? '#F2F5F9' : '#0B0B14'
|
||||
// 同步设置page元素背景色(统一深色主题)
|
||||
const bgColor = '#0B0B14'
|
||||
try {
|
||||
uni.setBackgroundColor({
|
||||
backgroundColor: bgColor,
|
||||
|
||||
Reference in New Issue
Block a user