2023.9.0-beta.11-prismisskey.4

This commit is contained in:
mattyatea 2023-09-23 09:45:10 +09:00
parent 578b11b54b
commit db7e4138d7

View file

@ -96,7 +96,7 @@ const gamingMode = computed(defaultStore.makeGetterSetter('gamingMode'));
let gaming = ref(''); // 0-off , 1-dark , 2-light let gaming = ref(''); // 0-off , 1-dark , 2-light
// gaming.value // 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'; gaming.value = 'dark';
} else if (!darkMode.value && gamingMode.value && props.primary|| props.gradate ) { } else if (!darkMode.value && gamingMode.value && props.primary|| props.gradate ) {
gaming.value = 'light'; gaming.value = 'light';
@ -105,9 +105,9 @@ if (darkMode.value && gamingMode.value && props.primary || props.gradate ) {
} }
watch(darkMode, () => { 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'; 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'; gaming.value = 'light';
}else{ }else{
gaming.value = ''; gaming.value = '';
@ -115,9 +115,9 @@ watch(darkMode, () => {
}) })
watch(gamingMode, () => { 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'; 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'; gaming.value = 'light';
}else{ }else{
gaming.value = ''; gaming.value = '';