From 77db4aa9dc4b91502fa6f2f849cb44d5b46bde08 Mon Sep 17 00:00:00 2001 From: Alex <40072887+alexdcrane@users.noreply.github.com> Date: Fri, 30 Aug 2024 13:44:56 -0700 Subject: [PATCH] Added dashboard_shadow_color default setting (#7114) * Added dashboard_shadow_color default setting * Update css.php * Update app_config.php --- themes/default/app_config.php | 8 ++++++++ themes/default/css.php | 11 +++++++++++ 2 files changed, 19 insertions(+) diff --git a/themes/default/app_config.php b/themes/default/app_config.php index 0b8f297f5a..452d1cb6d4 100644 --- a/themes/default/app_config.php +++ b/themes/default/app_config.php @@ -1120,6 +1120,14 @@ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the edge gradient color of the Dashboard block detail area."; $y++; + $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "b60d97bf-fed3-4484-b5ba-18c46b1a58a7"; + $apps[$x]['default_settings'][$y]['default_setting_category'] = "theme"; + $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "dashboard_shadow_color"; + $apps[$x]['default_settings'][$y]['default_setting_name'] = "text"; + $apps[$x]['default_settings'][$y]['default_setting_value'] = "rgba(153,153,153,0.5)"; + $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the shadow color (and opacity) of the Dashboard blocks."; + $y++; $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "499f4068-f6d7-48b4-9ec8-344cadcb1028"; $apps[$x]['default_settings'][$y]['default_setting_category'] = "theme"; $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "dashboard_footer_background_color"; diff --git a/themes/default/css.php b/themes/default/css.php index 43c058189f..fe4b49d705 100644 --- a/themes/default/css.php +++ b/themes/default/css.php @@ -237,6 +237,7 @@ $dashboard_detail_heading_text_size = $_SESSION['theme']['dashboard_detail_headi $dashboard_detail_background_color_edge = $_SESSION['theme']['dashboard_detail_background_color_edge']['text'] ?? '#edf1f7'; $dashboard_detail_background_color_center = $_SESSION['theme']['dashboard_detail_background_color_center']['text'] ?? '#f9fbfe'; $dashboard_detail_row_text_size = $_SESSION['theme']['dashboard_detail_row_text_size']['text'] ?? '11px'; +$dashboard_shadow_color = $_SESSION['theme']['dashboard_shadow_color']['text'] ?? ''; $dashboard_footer_background_color = $_SESSION['theme']['dashboard_footer_background_color']['text'] ?? '#e5e9f0'; $dashboard_footer_background_color_hover = $_SESSION['theme']['dashboard_footer_background_color_hover']['text'] ?? color_adjust($dashboard_footer_background_color, 0.02); $dashboard_footer_dots_color = $_SESSION['theme']['dashboard_footer_dots_color']['text'] ?? '#a4aebf'; @@ -2549,6 +2550,16 @@ else { //default: white margin-bottom: 15px; } + .widget { + + } + /* hud boxes */ div.hud_box { height: auto;