Never ending working styling for light and dark mode in Novi.

This commit is contained in:
Scott Idem
2025-08-08 15:57:46 -04:00
parent 5187f6455a
commit b95111503d
6 changed files with 255 additions and 14 deletions

View File

@@ -385,6 +385,14 @@ 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';
}