From dc9cb94e88f9202c75c682de3856c1f0f6bf037c Mon Sep 17 00:00:00 2001 From: Samidy Date: Mon, 8 Dec 2025 20:00:27 +0300 Subject: [PATCH] ok got it to default to amoled, now just make it not fall back if u select another theme --- docs/.vitepress/theme/themes/themeHandler.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/.vitepress/theme/themes/themeHandler.ts b/docs/.vitepress/theme/themes/themeHandler.ts index 1ee579c47..f3cf781d4 100644 --- a/docs/.vitepress/theme/themes/themeHandler.ts +++ b/docs/.vitepress/theme/themes/themeHandler.ts @@ -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) {