From 4ecb9650e001e032cd55bd2ba329c77e7c28ebfc Mon Sep 17 00:00:00 2001 From: fusionate Date: Mon, 9 Sep 2024 18:28:39 -0600 Subject: [PATCH] Theme: Add settings to control color/hover of list row text links. --- themes/default/app_config.php | 16 ++++++++++++++++ themes/default/css.php | 19 +++++++++++++++---- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/themes/default/app_config.php b/themes/default/app_config.php index 8f45cd5fde..d42538280b 100644 --- a/themes/default/app_config.php +++ b/themes/default/app_config.php @@ -944,6 +944,22 @@ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the text color (and opacity) of table data rows."; $y++; + $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "deff01d1-ef91-43dd-968a-d16f2d780327"; + $apps[$x]['default_settings'][$y]['default_setting_category'] = "theme"; + $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "table_row_text_link_color"; + $apps[$x]['default_settings'][$y]['default_setting_name'] = "text"; + $apps[$x]['default_settings'][$y]['default_setting_value'] = "#004083"; + $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the text color (and opacity) of links in table data rows."; + $y++; + $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "230411f1-ea34-42db-b480-b717882d0808"; + $apps[$x]['default_settings'][$y]['default_setting_category'] = "theme"; + $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "table_row_text_link_color_hover"; + $apps[$x]['default_settings'][$y]['default_setting_name'] = "text"; + $apps[$x]['default_settings'][$y]['default_setting_value'] = "#5082ca"; + $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the text hover color (and opacity) of links in table data rows."; + $y++; $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "8091fae1-2fc8-4149-b1a7-b43e28cf97ef"; $apps[$x]['default_settings'][$y]['default_setting_category'] = "theme"; $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "table_row_background_color_dark"; diff --git a/themes/default/css.php b/themes/default/css.php index d7f91d759b..02c0cfca8c 100644 --- a/themes/default/css.php +++ b/themes/default/css.php @@ -182,6 +182,8 @@ $table_heading_padding = $_SESSION['theme']['table_heading_padding']['text'] ?? $table_row_text_color = $_SESSION['theme']['table_row_text_color']['text'] ?? '#000'; $table_row_text_font = $_SESSION['theme']['table_row_text_font']['text'] ?? 'arial'; $table_row_text_size = $_SESSION['theme']['table_row_text_size']['text'] ?? '12px'; +$table_row_text_link_color = $_SESSION['theme']['table_row_text_link_color']['text'] ?? $text_link_color; +$table_row_text_link_color_hover = $_SESSION['theme']['table_row_text_link_color_hover']['text'] ?? $text_link_color_hover; $table_row_border_color = $_SESSION['theme']['table_row_border_color']['text'] ?? '#c5d1e5'; $table_row_background_color_light = $_SESSION['theme']['table_row_background_color_light']['text'] ?? '#fff'; $table_row_background_color_medium = $_SESSION['theme']['table_row_background_color_medium']['text'] ?? '#f0f2f6'; @@ -2211,7 +2213,7 @@ else { //default: white table.tr_hover tr:hover td, table.tr_hover tr:hover td a { - color: ; + color: ; cursor: pointer; } @@ -3220,9 +3222,18 @@ else { //default: white cursor: default; } + .list tr td a, + .list tr td button.btn.btn-link { + color: ; + } + + .list tr td button.btn.btn-link:hover { + color: ; + } + .list tr:hover td:not(.no-link), .list tr:hover td:not(.no-link) a { - color: ; + color: ; cursor: pointer; } @@ -3241,11 +3252,11 @@ else { //default: white } .list-header > th > a.default-color { - color: ; + color: ; } .list-header > th > a.default-color:hover { - color: ; + color: ; } .list-row:nth-child(odd) > :not(.action-button) {