This commit is contained in:
mattyatea 2023-10-26 17:34:34 +09:00
parent 85c9b35d03
commit d03d75602f
1 changed files with 11 additions and 12 deletions

View File

@ -127,16 +127,6 @@ if (darkMode.value) {
iconUrl.value = iconLight;
}
watch(darkMode, () => {
if (darkMode.value) {
bannerUrl.value = bannerDark;
iconUrl.value = iconDark;
} else {
bannerUrl.value = bannerLight;
iconUrl.value = iconLight;
}
})
if (darkMode.value && gamingMode.value == true) {
gamingType.value = 'dark';
} else if (!darkMode.value && gamingMode.value == true) {
@ -146,9 +136,18 @@ if (darkMode.value && gamingMode.value == true) {
}
watch([darkMode,gamingMode], () => {
if (darkMode.value && gamingMode.value == true) {
if (darkMode.value) {
bannerUrl.value = bannerDark;
iconUrl.value = iconDark;
} else {
bannerUrl.value = bannerLight;
iconUrl.value = iconLight;
}
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 = '';