From 30f6b8241648be4233b27eaaf01dfc53c32c0fdd Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Thu, 6 Aug 2026 15:06:30 +0200 Subject: [PATCH] fix(color-scheme): set color scheme dummy value to null Set the initial value of the color scheme ref to null to make setting it to the actual value trigger a change if the color scheme is auto. --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 369a3c4..6728627 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,7 +26,7 @@ import { useRoute } from 'vue-router'; const route = useRoute(); const { getColorScheme, updateColorScheme } = useColorScheme(); -const colorScheme = ref('auto'); +const colorScheme = ref(null); provide('colorScheme', colorScheme); watch(colorScheme, (newValue) => { updateColorScheme(newValue);