mirror of
https://github.com/fmhy/edit.git
synced 2026-01-12 23:11:06 +11:00
super safe
This commit is contained in:
parent
13bad0bee5
commit
b845dc069d
1 changed files with 2 additions and 3 deletions
|
|
@ -21,13 +21,12 @@ import { themeRegistry } from './configs'
|
|||
const STORAGE_KEY_THEME = 'vitepress-theme-name'
|
||||
const STORAGE_KEY_MODE = 'vitepress-display-mode'
|
||||
const STORAGE_KEY_AMOLED = 'vitepress-amoled-enabled'
|
||||
const STORAGE_KEY_THEME_DATA = 'vitepress-theme-data'
|
||||
|
||||
export class ThemeHandler {
|
||||
private state = ref<ThemeState>({
|
||||
currentTheme: 'color-swarm',
|
||||
currentTheme: 'swarm',
|
||||
currentMode: 'light' as DisplayMode,
|
||||
theme: themeRegistry['color-swarm']
|
||||
theme: null
|
||||
})
|
||||
private amoledEnabled = ref(false)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue