From 0061e86084beb5ffd6acfad926d44dd49a00664a Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 27 Sep 2022 21:28:52 +0200 Subject: Fix theme switch --- pages/settings.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pages') diff --git a/pages/settings.vue b/pages/settings.vue index bc028d4..8da18ab 100644 --- a/pages/settings.vue +++ b/pages/settings.vue @@ -62,9 +62,9 @@ select( class="cursor-pointer rounded-md border border-gray-300 bg-white py-2 px-3 text-sm font-medium leading-4 text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2" ) - option(@click="$colorMode.preference = 'system'") System - option(@click="$colorMode.preference = 'light'") Light - option(@click="$colorMode.preference = 'dark'") Dark + option(@click="$colorMode.preference = 'system'" :selected="$colorMode.preference == 'system'") System + option(@click="$colorMode.preference = 'light'" :selected="$colorMode.preference == 'light'") Light + option(@click="$colorMode.preference = 'dark'" :selected="$colorMode.preference == 'dark'") Dark .py-3.px-4.text-right(class="sm:px-6") -- cgit v1.2.3-18-g5258