Move dashboard defaults settings to theme (#6973)

This commit is contained in:
Alex
2024-05-08 12:41:21 -07:00
committed by GitHub
parent 66b57a7784
commit 301a1f69a0
20 changed files with 183 additions and 342 deletions

View File

@@ -93,10 +93,12 @@
data: {
datasets: [{
data: ['<?php echo $registrations; ?>', 0.00001],
backgroundColor: ['<?php echo $_SESSION['dashboard']['switch_status_chart_main_background_color']['text']; ?>',
'<?php echo $_SESSION['dashboard']['switch_status_chart_sub_background_color']['text']; ?>'],
borderColor: '<?php echo $_SESSION['dashboard']['switch_status_chart_border_color']['text']; ?>',
borderWidth: '<?php echo $_SESSION['dashboard']['switch_status_chart_border_width']['text']; ?>'
backgroundColor: [
'<?php echo ($settings->get('theme', 'dashboard_switch_status_chart_main_color') ?? '#2a9df4'); ?>',
'<?php echo ($settings->get('theme', 'dashboard_switch_status_chart_sub_color') ?? '#d4d4d4'); ?>'
],
borderColor: '<?php echo $settings->get('theme', 'dashboard_chart_border_color'); ?>',
borderWidth: '<?php echo $settings->get('theme', 'dashboard_chart_border_width'); ?>',
}]
},
options: {