mirror of
https://github.com/fmhy/edit.git
synced 2026-01-12 23:11:06 +11:00
fix(themeHandler): properly keep track of color theme when using preset (#4459)
This commit is contained in:
parent
574741cb5c
commit
89ec4df6a5
2 changed files with 3 additions and 7 deletions
|
|
@ -97,11 +97,6 @@ export class ThemeHandler {
|
|||
if (mode === 'dark' && this.amoledEnabled.value) {
|
||||
root.classList.add('amoled')
|
||||
}
|
||||
|
||||
// Add dark class for backward compatibility with VitePress
|
||||
if (mode === 'dark') {
|
||||
root.classList.add('dark')
|
||||
}
|
||||
}
|
||||
|
||||
private applyCSSVariables(colors: ModeColors, theme: Theme) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue