From c2d84ad5e06fadf9b88f6a1efd9517fbfd491f62 Mon Sep 17 00:00:00 2001 From: Jonas Date: Sat, 22 Nov 2025 22:57:05 +0100 Subject: [PATCH] Fix Auto Theme --- GUI/src/Layout.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI/src/Layout.vue b/GUI/src/Layout.vue index 8fbcf6a..0d92826 100644 --- a/GUI/src/Layout.vue +++ b/GUI/src/Layout.vue @@ -20,9 +20,9 @@ function toggleDrawer() { onMounted(() => { theme.change( - localStorage.getItem('theme') || window.matchMedia('(prefers-color-scheme: dark)').matches + localStorage.getItem('theme') || (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' - : 'light', + : 'light') ); showDrawer.value = localStorage.getItem('drawer')?.startsWith('Y') || false; });