Skip to content

Commit

Permalink
Use light gray as fallback for graph status color
Browse files Browse the repository at this point in the history
The MantisBT default (white) causes the pie chart (or a part of it) to
become invisible unless the user hovers their mouse on top of them,
since the slices are displayed without border.

Issue #25523
  • Loading branch information
dregad committed Mar 2, 2019
1 parent 45dca87 commit 00d3f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/MantisGraph/core/graph_api.php
Expand Up @@ -75,7 +75,7 @@ function graph_colors_to_rgbas( array $p_colors, $p_alpha ) {
function graph_status_colors_to_colors( $p_metrics = array() ) {
$t_colors = array();
foreach( array_keys( $p_metrics ) as $t_label ) {
$t_colors[] = get_status_color_by_label( $t_label );
$t_colors[] = get_status_color_by_label( $t_label , null, null, '#e5e5e5' );
}

return $t_colors;
Expand Down

0 comments on commit 00d3f83

Please sign in to comment.