From db7e4138d7d532c0e3d6ea2ddc9568e96fbba0e0 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Sat, 23 Sep 2023 09:45:10 +0900 Subject: [PATCH] 2023.9.0-beta.11-prismisskey.4 --- packages/frontend/src/components/MkButton.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/components/MkButton.vue b/packages/frontend/src/components/MkButton.vue index 82b94140aa..3078ca241e 100644 --- a/packages/frontend/src/components/MkButton.vue +++ b/packages/frontend/src/components/MkButton.vue @@ -96,7 +96,7 @@ const gamingMode = computed(defaultStore.makeGetterSetter('gamingMode')); let gaming = ref(''); // 0-off , 1-dark , 2-light // gaming.valueに新しい値を代入する -if (darkMode.value && gamingMode.value && props.primary || props.gradate ) { +if (darkMode.value && gamingMode.value && props.primary || darkMode.value && gamingMode.value && props.gradate ) { gaming.value = 'dark'; } else if (!darkMode.value && gamingMode.value && props.primary|| props.gradate ) { gaming.value = 'light'; @@ -105,9 +105,9 @@ if (darkMode.value && gamingMode.value && props.primary || props.gradate ) { } watch(darkMode, () => { - if (darkMode.value && gamingMode.value && props.primary || props.gradate || props.large || props.small || props.full ) { + if (darkMode.value && gamingMode.value && props.primary || darkMode.value && gamingMode.value && props.gradate ) { gaming.value = 'dark'; - } else if (!darkMode.value && gamingMode.value && props.primary || props.gradate || props.large || props.small || props.full ) { + } else if (!darkMode.value && gamingMode.value && props.primary|| darkMode.value && gamingMode.value && props.gradate) { gaming.value = 'light'; }else{ gaming.value = ''; @@ -115,9 +115,9 @@ watch(darkMode, () => { }) watch(gamingMode, () => { - if (darkMode.value && gamingMode.value && props.primary || props.gradate || props.large || props.small || props.full ) { + if (darkMode.value && gamingMode.value && props.primary|| darkMode.value && gamingMode.value && props.gradate ) { gaming.value = 'dark'; - } else if (!darkMode.value && gamingMode.value && props.primary || props.gradate || props.large || props.small || props.full ) { + } else if (!darkMode.value && gamingMode.value && props.primary || darkMode.value && gamingMode.value && props.gradate ) { gaming.value = 'light'; }else{ gaming.value = '';