aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/php/theme.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-01-26 18:28:40 +0000
committerMario <mario@mariovavti.com>2023-01-26 18:28:40 +0000
commit79b40179b40b0f1539e58a8c2c7d7f914e6b212b (patch)
tree4e4ae56930f3d3599aad1fdcfe6653d8c5e5be32 /view/theme/redbasic/php/theme.php
parent60c968222f0090757dfc20a00433e926c6180fce (diff)
downloadvolse-hubzilla-79b40179b40b0f1539e58a8c2c7d7f914e6b212b.tar.gz
volse-hubzilla-79b40179b40b0f1539e58a8c2c7d7f914e6b212b.tar.bz2
volse-hubzilla-79b40179b40b0f1539e58a8c2c7d7f914e6b212b.zip
redbasic: implement setting for always light navbar icons and some minor fixes
Diffstat (limited to 'view/theme/redbasic/php/theme.php')
-rw-r--r--view/theme/redbasic/php/theme.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/view/theme/redbasic/php/theme.php b/view/theme/redbasic/php/theme.php
index abfac05b6..8864f5ea5 100644
--- a/view/theme/redbasic/php/theme.php
+++ b/view/theme/redbasic/php/theme.php
@@ -18,18 +18,23 @@ use App;
function redbasic_init(&$a) {
$mode = '';
+ $navbar_mode = '';
if (local_channel()) {
$mode = ((get_pconfig(local_channel(), 'redbasic', 'dark_mode')) ? 'dark' : 'light');
+ $navbar_mode = ((get_pconfig(local_channel(), 'redbasic', 'navbar_dark_mode')) ? 'dark' : 'light');
}
if (App::$profile_uid) {
$mode = ((get_pconfig(App::$profile_uid, 'redbasic', 'dark_mode')) ? 'dark' : 'light');
+ $navbar_mode = ((get_pconfig(App::$profile_uid, 'redbasic', 'navbar_dark_mode')) ? 'dark' : 'light');
}
if (!$mode) {
$mode = ((get_config('redbasic', 'dark_mode')) ? 'dark' : 'light');
+ $navbar_mode = ((get_config('redbasic', 'navbar_dark_mode')) ? 'dark' : 'light');
}
App::$page['color_mode'] = 'data-bs-theme="' . $mode . '"';
+ App::$page['navbar_color_mode'] = (($navbar_mode === 'dark') ? 'data-bs-theme="' . $navbar_mode . '"' : '');
}