More work on dark mode clean up. Wrapping up for the week. Happy almost birthday me.

This commit is contained in:
Scott Idem
2025-08-08 17:49:58 -04:00
parent b95111503d
commit 7ef18ce105
7 changed files with 62 additions and 21 deletions

View File

@@ -386,13 +386,13 @@ if ($ae_loc?.site_cfg_json?.theme_name) {
if ($ae_loc?.site_cfg_json?.theme_mode) {
$ae_loc.theme_mode = $ae_loc.site_cfg_json.theme_mode;
if (browser && window.matchMedia('(prefers-color-scheme: dark)').matches) {
$ae_loc.theme_mode = 'dark';
} else {
$ae_loc.theme_mode = 'light';
}
// $ae_loc.theme_mode = 'dark';
}
if (browser && window.matchMedia('(prefers-color-scheme: dark)').matches) {
$ae_loc.theme_mode = 'dark';
} else {
$ae_loc.theme_mode = 'light';
}