diff --git a/public/app.js b/public/app.js index 8f0f67e..999e595 100644 --- a/public/app.js +++ b/public/app.js @@ -3635,7 +3635,7 @@ function closeBackup() { // Theme mode: 'light', 'dark' or 'system' (follows Windows, also live when it changes). const systemDark = matchMedia('(prefers-color-scheme: dark)') -let themeMode = 'system' +let themeMode = 'light' // default until initTheme reads the saved choice (first start = light) function applyTheme() { const theme = themeMode === 'system' ? (systemDark.matches ? 'dark' : 'light') : themeMode @@ -3690,7 +3690,7 @@ function initTheme() { let saved = null try { saved = localStorage.getItem('dash.theme') } catch {} saved = new URLSearchParams(location.search).get('theme') ?? saved - themeMode = ['light', 'dark', 'system'].includes(saved) ? saved : 'system' + themeMode = ['light', 'dark', 'system'].includes(saved) ? saved : 'light' // first start (also setup): light applyTheme() } systemDark.addEventListener('change', () => { if (themeMode === 'system') applyTheme() }) diff --git a/public/index.html b/public/index.html index 02b332e..51e726d 100644 --- a/public/index.html +++ b/public/index.html @@ -1,9 +1,11 @@ - +