```
refactor(theme): 统一应用深色主题替换日夜切换功能 - 移除白天主题相关样式定义和切换逻辑 - 将主题系统固定为深色主题(琥珀夜光) - 更新页面背景色设置为统一深色 - 简化导航栏和标签栏主题应用逻辑 - 移除白天主题的颜色变量和样式类 - 更新主题混入文件以支持单一深色主题 ```
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/* 碰盏日记 - 主题混入 (Theme Mixin)
|
||||
* 每个页面混入此mixin,自动在onShow时刷新日夜主题
|
||||
* 全局统一深色主题(琥珀夜光),已移除白天主题
|
||||
* 页面根视图需绑定 :class="themeClass"
|
||||
*/
|
||||
import { getCurrentTheme, applyTheme } from './utils'
|
||||
import { applyTheme } from './utils'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -19,10 +19,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
_refreshTheme() {
|
||||
const theme = getCurrentTheme()
|
||||
this.currentTheme = theme
|
||||
this.themeClass = theme === 'light' ? 'theme-light' : 'theme-dark'
|
||||
applyTheme(theme)
|
||||
// 固定深色主题
|
||||
this.currentTheme = 'dark'
|
||||
this.themeClass = 'theme-dark'
|
||||
applyTheme('dark')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user