Theme: Add settings to control color/hover of list row text links.

This commit is contained in:
fusionate
2024-09-09 18:28:39 -06:00
parent 418fc49ba8
commit 4ecb9650e0
2 changed files with 31 additions and 4 deletions

View File

@@ -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";

View File

@@ -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: <?=$text_link_color_hover?>;
color: <?=$table_row_text_link_color_hover?>;
cursor: pointer;
}
@@ -3220,9 +3222,18 @@ else { //default: white
cursor: default;
}
.list tr td a,
.list tr td button.btn.btn-link {
color: <?=$table_row_text_link_color?>;
}
.list tr td button.btn.btn-link:hover {
color: <?=$table_row_text_link_color_hover?>;
}
.list tr:hover td:not(.no-link),
.list tr:hover td:not(.no-link) a {
color: <?=$text_link_color_hover?>;
color: <?=$table_row_text_link_color_hover?>;
cursor: pointer;
}
@@ -3241,11 +3252,11 @@ else { //default: white
}
.list-header > th > a.default-color {
color: <?=$text_link_color?>;
color: <?=$table_row_text_link_color?>;
}
.list-header > th > a.default-color:hover {
color: <?=$text_link_color_hover?>;
color: <?=$table_row_text_link_color_hover?>;
}
.list-row:nth-child(odd) > :not(.action-button) {