mirror of
https://github.com/fmhy/edit.git
synced 2026-01-12 23:11:06 +11:00
ok got it to default to amoled, now just make it not fall back if u select another theme
This commit is contained in:
parent
18a12cec17
commit
dc9cb94e88
1 changed files with 5 additions and 0 deletions
|
|
@ -99,6 +99,11 @@ export class ThemeHandler {
|
|||
if (mode === 'dark') {
|
||||
root.classList.add('dark')
|
||||
}
|
||||
|
||||
// Remove amoled class if current mode is not 'dark'
|
||||
if (mode !== 'dark') {
|
||||
root.classList.remove('amoled')
|
||||
}
|
||||
}
|
||||
|
||||
private applyCSSVariables(colors: ModeColors, theme: Theme) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue