Never ending working styling for light and dark mode in Novi.
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user