Line 70: |
Line 70: |
| range = "lightseagreen", | | range = "lightseagreen", |
| }, | | }, |
− | _column_header_cell_template = [[! style="background-color: ${bg_color};" | ${value}]], | + | _column_header_cell_template = [[! class="highlighted" style="background-color:${bg_color}" | ${value}]], |
| + | _column_header_cell_template_simple = [[| ${value}]], |
| _stats_column_label = "Stats", | | _stats_column_label = "Stats", |
| } | | } |
Line 253: |
Line 254: |
| if note.highlight == "outstanding" then | | if note.highlight == "outstanding" then |
| bg_color = self._outstanding_stat_color | | bg_color = self._outstanding_stat_color |
− | txt_color = self.black
| |
| elseif note.highlight == "good" then | | elseif note.highlight == "good" then |
| bg_color = self._good_stat_color | | bg_color = self._good_stat_color |
− | txt_color = black
| |
| elseif note.highlight == "bad" then | | elseif note.highlight == "bad" then |
| bg_color = self._bad_stat_color | | bg_color = self._bad_stat_color |
Line 276: |
Line 275: |
| for _, column in ipairs(self._stat_columns) do | | for _, column in ipairs(self._stat_columns) do |
| if self._shown_stats[column] then | | if self._shown_stats[column] then |
− | table.insert(stat_columns, format{self._column_header_cell_template, value = Formatting:format_image{StatIcons[column] or (column == "deployment_cost" and ResourceIcons.bauxite or nil), caption = Formatting:format_stat_name(column)}, bg_color = self._stat_colors[column]}) | + | bg_color = self._stat_colors[column] |
| + | if bg_color == 'transparent' then |
| + | table.insert(stat_columns, format{ |
| + | self._column_header_cell_template_simple, |
| + | value = Formatting:format_image{StatIcons[column] or (column == "deployment_cost" and ResourceIcons.bauxite or nil), caption = Formatting:format_stat_name(column)}, |
| + | }) |
| + | else |
| + | table.insert(stat_columns, format{ |
| + | self._column_header_cell_template, |
| + | value = Formatting:format_image{StatIcons[column] or (column == "deployment_cost" and ResourceIcons.bauxite or nil), caption = Formatting:format_stat_name(column)}, |
| + | bg_color = bg_color, |
| + | }) |
| + | end |
| else | | else |
| for _, row_values in ipairs(self._data_rows) do | | for _, row_values in ipairs(self._data_rows) do |