From f4bc2e82911243c69e3c04289e67b789be3a94c6 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Sat, 28 Oct 2023 06:12:35 +0900 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E5=88=86=E5=8B=95=E3=81=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/ui/_common_/navbar.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/frontend/src/ui/_common_/navbar.vue b/packages/frontend/src/ui/_common_/navbar.vue index 33c973f80a..04f710e818 100644 --- a/packages/frontend/src/ui/_common_/navbar.vue +++ b/packages/frontend/src/ui/_common_/navbar.vue @@ -117,7 +117,7 @@ let gamingType = computed(defaultStore.makeGetterSetter('gamingType')); const gamingMode = computed(defaultStore.makeGetterSetter('gamingMode')); const darkMode = computed(defaultStore.makeGetterSetter('darkMode')); - +const enablehanntenn = computed(defaultStore.makeGetterSetter('enablehanntenn')); if (darkMode.value) { bannerUrl.value = bannerDark; @@ -127,9 +127,9 @@ if (darkMode.value) { iconUrl.value = iconLight; } -if (darkMode.value && gamingMode.value == true) { +if (darkMode.value && gamingMode.value) { gamingType.value = 'dark'; -} else if (!darkMode.value && gamingMode.value == true) { +} else if (!darkMode.value && gamingMode.value) { gamingType.value = 'light'; } else { gamingType.value = ''; @@ -138,11 +138,11 @@ if (darkMode.value && gamingMode.value == true) { watch([darkMode,gamingMode], () => { if (darkMode.value) { - bannerUrl.value = bannerDark; - iconUrl.value = iconDark; + bannerUrl.value = enablehanntenn ? bannerLight : bannerDark; + iconUrl.value = enablehanntenn ? bannerLight : bannerDark; } else { - bannerUrl.value = bannerLight; - iconUrl.value = iconLight; + bannerUrl.value = enablehanntenn ? bannerDark : bannerLight; + iconUrl.value = enablehanntenn ? bannerDark : bannerLight; } if (darkMode.value && gamingMode.value) { @@ -152,6 +152,7 @@ watch([darkMode,gamingMode], () => { } else { gamingType.value = ''; } + }) const menu = computed(() => defaultStore.state.menu);