Update AMOLED toggle to use v-model for binding

this makes sure that the toggle doesnt revert back to being off after reloading 

this was an issue that i couldnt test out where the toggle would revert back to the off state while the page remained in the amoled state
This commit is contained in:
Land 2025-11-01 20:32:00 +05:30 committed by GitHub
parent 02d6f13a1d
commit 6e465712d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,7 +135,7 @@ const normalizeColorName = (colorName: string) =>
<!-- AMOLED toggle --> <!-- AMOLED toggle -->
<div class="mt-4 flex items-center gap-2"> <div class="mt-4 flex items-center gap-2">
<span class="text-sm text-$vp-c-text-2">AMOLED</span> <span class="text-sm text-$vp-c-text-2">AMOLED</span>
<Switch @click="isAmoledMode = !isAmoledMode" /> <Switch v-model="isAmoledMode" @click="isAmoledMode = !isAmoledMode" />
</div> </div>
</div> </div>
</template> </template>