Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Jan 28, 2024
1 parent f6d1ec8 commit 122746c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion administrator/templates/atum/component.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

if ($colorScheme) {
$colorScheme = $app->getIdentity()->getParam('colorScheme', $colorScheme);
$lastMode = $app->getInput()->cookie->get('colorScheme', $colorScheme);
$lastMode = $app->getInput()->cookie->get('colorScheme') ?: $colorScheme;
$themeModes = ['os' => ' data-color-scheme-os', 'light' => ' data-bs-theme="light" data-color-scheme="light"', 'dark' => ' data-bs-theme="dark" data-color-scheme="dark"'];
$themeModeAttr = $themeModes[$lastMode] ?? '';
}
Expand Down
2 changes: 1 addition & 1 deletion administrator/templates/atum/error_full.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

if ($colorScheme) {
$colorScheme = $app->getIdentity()->getParam('colorScheme', $colorScheme);
$lastMode = $app->getInput()->cookie->get('colorScheme', $colorScheme);
$lastMode = $app->getInput()->cookie->get('colorScheme') ?: $colorScheme;
$themeModes = ['os' => ' data-color-scheme-os', 'light' => ' data-bs-theme="light" data-color-scheme="light"', 'dark' => ' data-bs-theme="dark" data-color-scheme="dark"'];
$themeModeAttr = $themeModes[$lastMode] ?? '';
}
Expand Down
2 changes: 1 addition & 1 deletion administrator/templates/atum/error_login.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@

if ($colorScheme) {
$colorScheme = $app->getIdentity()->getParam('colorScheme', $colorScheme);
$lastMode = $app->getInput()->cookie->get('colorScheme', $colorScheme);
$lastMode = $app->getInput()->cookie->get('colorScheme') ?: $colorScheme;
$themeModes = ['os' => ' data-color-scheme-os', 'light' => ' data-bs-theme="light" data-color-scheme="light"', 'dark' => ' data-bs-theme="dark" data-color-scheme="dark"'];
$themeModeAttr = $themeModes[$lastMode] ?? '';
}
Expand Down
2 changes: 1 addition & 1 deletion administrator/templates/atum/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@

if ($colorScheme) {
$colorScheme = $app->getIdentity()->getParam('colorScheme', $colorScheme);
$lastMode = $app->getInput()->cookie->get('colorScheme', $colorScheme);
$lastMode = $app->getInput()->cookie->get('colorScheme') ?: $colorScheme;
$themeModes = ['os' => ' data-color-scheme-os', 'light' => ' data-bs-theme="light" data-color-scheme="light"', 'dark' => ' data-bs-theme="dark" data-color-scheme="dark"'];
$themeModeAttr = $themeModes[$lastMode] ?? '';
}
Expand Down
2 changes: 1 addition & 1 deletion administrator/templates/atum/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

if ($colorScheme) {
$colorScheme = $app->getIdentity()->getParam('colorScheme', $colorScheme);
$lastMode = $app->getInput()->cookie->get('colorScheme', $colorScheme);
$lastMode = $app->getInput()->cookie->get('colorScheme') ?: $colorScheme;
$themeModes = ['os' => ' data-color-scheme-os', 'light' => ' data-bs-theme="light" data-color-scheme="light"', 'dark' => ' data-bs-theme="dark" data-color-scheme="dark"'];
$themeModeAttr = $themeModes[$lastMode] ?? '';
}
Expand Down

0 comments on commit 122746c

Please sign in to comment.