diff --git a/assets/global.js b/assets/global.js index fa3b3ad..b795836 100644 --- a/assets/global.js +++ b/assets/global.js @@ -2,8 +2,11 @@ Reihenfolge: ausdrueckliche Auswahl des Nutzers > Systemeinstellung. */ (function() { const saved = localStorage.getItem('theme'); + // Der Inline-Schnipsel im hat das Theme bereits gesetzt – diese + // Entscheidung wird hier nicht überschrieben. + const current = document.documentElement.getAttribute('data-theme'); const system = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'; - document.documentElement.setAttribute('data-theme', saved || system); + document.documentElement.setAttribute('data-theme', saved || current || system); // Solange nichts ausgewaehlt wurde, folgt die Oberflaeche dem System. if (!saved && window.matchMedia) { diff --git a/docs/screenshots/admin-dashboard-dark.png b/docs/screenshots/admin-dashboard-dark.png index 60d8402..f41ea94 100644 Binary files a/docs/screenshots/admin-dashboard-dark.png and b/docs/screenshots/admin-dashboard-dark.png differ diff --git a/docs/screenshots/two-factor.png b/docs/screenshots/two-factor.png index eb57684..f85ddb6 100644 Binary files a/docs/screenshots/two-factor.png and b/docs/screenshots/two-factor.png differ diff --git a/docs/screenshots/vouchers.png b/docs/screenshots/vouchers.png index ce818ed..fb0e301 100644 Binary files a/docs/screenshots/vouchers.png and b/docs/screenshots/vouchers.png differ diff --git a/updater/templates/update.php b/updater/templates/update.php index 1c84369..064ccdc 100644 --- a/updater/templates/update.php +++ b/updater/templates/update.php @@ -21,7 +21,7 @@ $channels = \Updater\UpdateManager::CHANNELS; System-Update - +