瀏覽代碼

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

fusionate 1 年之前
父節點
當前提交
114228ab7f
共有 2 個文件被更改,包括 31 次插入4 次删除
  1. 16 0
      themes/default/app_config.php
  2. 15 4
      themes/default/css.php

+ 16 - 0
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_enabled'] = "false";
 		$apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the text color (and opacity) of table data rows.";
 		$apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the text color (and opacity) of table data rows.";
 		$y++;
 		$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_uuid'] = "8091fae1-2fc8-4149-b1a7-b43e28cf97ef";
 		$apps[$x]['default_settings'][$y]['default_setting_category'] = "theme";
 		$apps[$x]['default_settings'][$y]['default_setting_category'] = "theme";
 		$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "table_row_background_color_dark";
 		$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "table_row_background_color_dark";

+ 15 - 4
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_color = $_SESSION['theme']['table_row_text_color']['text'] ?? '#000';
 $table_row_text_font = $_SESSION['theme']['table_row_text_font']['text'] ?? 'arial';
 $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_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_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_light = $_SESSION['theme']['table_row_background_color_light']['text'] ?? '#fff';
 $table_row_background_color_medium = $_SESSION['theme']['table_row_background_color_medium']['text'] ?? '#f0f2f6';
 $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,
 	table.tr_hover tr:hover td a {
 	table.tr_hover tr:hover td a {
-		color: <?=$text_link_color_hover?>;
+		color: <?=$table_row_text_link_color_hover?>;
 		cursor: pointer;
 		cursor: pointer;
 		}
 		}
 
 
@@ -3220,9 +3222,18 @@ else { //default: white
 		cursor: default;
 		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),
 	.list tr:hover td:not(.no-link) a {
 	.list tr:hover td:not(.no-link) a {
-		color: <?=$text_link_color_hover?>;
+		color: <?=$table_row_text_link_color_hover?>;
 		cursor: pointer;
 		cursor: pointer;
 		}
 		}
 
 
@@ -3241,11 +3252,11 @@ else { //default: white
 		}
 		}
 
 
 	.list-header > th > a.default-color {
 	.list-header > th > a.default-color {
-		color: <?=$text_link_color?>;
+		color: <?=$table_row_text_link_color?>;
 		}
 		}
 
 
 	.list-header > th > a.default-color:hover {
 	.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) {
 	.list-row:nth-child(odd) > :not(.action-button) {