]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12502 Change E rating to have primary red color
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Thu, 3 Oct 2019 13:55:33 +0000 (15:55 +0200)
committerSonarTech <sonartech@sonarsource.com>
Wed, 9 Oct 2019 18:21:06 +0000 (20:21 +0200)
server/sonar-web/src/main/js/helpers/constants.ts
server/sonar-webserver-webapi/src/main/java/org/sonar/server/badge/ws/SvgGenerator.java

index e8e8f9cd6f49f3651a0697c7ddc87ecfca7151f7..e1d1c67f69cb7b34a9d13e3f69158131de5dc8ab 100644 (file)
@@ -37,6 +37,7 @@ export const CHART_COLORS_RANGE_PERCENT = [
   colors.orange,
   colors.red
 ];
+
 export const CHART_REVERSED_COLORS_RANGE_PERCENT = [
   colors.red,
   colors.orange,
@@ -50,5 +51,5 @@ export const RATING_COLORS = [
   colors.lightGreen,
   colors.yellow,
   colors.orange,
-  '#e00'
+  colors.red
 ];
index b9d86844a0bfcb46e15816cf66e692a13441fb65..803ca5a850525aed46802db2e998a4dd4bfe03a3 100644 (file)
@@ -201,7 +201,7 @@ public class SvgGenerator {
     static final Color RATING_B = new Color("#b0d513");
     static final Color RATING_C = new Color("#eabe06");
     static final Color RATING_D = new Color("#ed7d20");
-    static final Color RATING_E = new Color("#e00");
+    static final Color RATING_E = new Color("#d4333f");
 
     private final String value;