From ee54a5ab2afb8261a14d8723df205e1a1b9ab953 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Sun, 24 Sep 2023 18:44:08 +0900 Subject: [PATCH] 2023.9.0-prismisskey.1 --- packages/frontend/src/components/MkMenu.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/MkMenu.vue b/packages/frontend/src/components/MkMenu.vue index cda7bb377b..fc878d4733 100644 --- a/packages/frontend/src/components/MkMenu.vue +++ b/packages/frontend/src/components/MkMenu.vue @@ -87,8 +87,7 @@ if (darkMode.value && gamingMode.value == true) { watch(darkMode, () => { if (darkMode.value && gamingMode.value == true) { gaming.value = 'dark'; - document.documentElement.style.setProperty('--accent', '#fff'); - document.documentElement.style.setProperty('--accentLighten', '#fff'); + } else if (!darkMode.value && gamingMode.value == true) { gaming.value = 'light'; } else { @@ -99,8 +98,7 @@ watch(darkMode, () => { watch(gamingMode, () => { if (darkMode.value && gamingMode.value == true) { gaming.value = 'dark'; - document.documentElement.style.setProperty('--accent', '#fff'); - document.documentElement.style.setProperty('--accentLighten', '#fff'); + } else if (!darkMode.value && gamingMode.value == true) { gaming.value = 'light'; } else {