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; });