aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2017-01-18 16:36:50 +0100
committerStas Vilchik <vilchiks@gmail.com>2017-01-24 18:14:41 +0100
commitd02bc697f9d3153e809856ed59e9f99403f0bb08 (patch)
tree169378f093b22730e5f00823cd4bcdfca309409d /server/sonar-web/src/main/js/apps
parentbe36f35e637ace99705b843c7d4ef31d2eb9d59f (diff)
downloadsonarqube-d02bc697f9d3153e809856ed59e9f99403f0bb08.tar.gz
sonarqube-d02bc697f9d3153e809856ed59e9f99403f0bb08.zip
SONAR-8643 Make the color palette consistent
Diffstat (limited to 'server/sonar-web/src/main/js/apps')
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/details/treemap/MeasureTreemap.js8
-rw-r--r--server/sonar-web/src/main/js/apps/overview/styles.css4
2 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/details/treemap/MeasureTreemap.js b/server/sonar-web/src/main/js/apps/component-measures/details/treemap/MeasureTreemap.js
index 12060645ba4..5cd860c9ab5 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/details/treemap/MeasureTreemap.js
+++ b/server/sonar-web/src/main/js/apps/component-measures/details/treemap/MeasureTreemap.js
@@ -101,21 +101,21 @@ export default class MeasureTreemap extends React.Component {
getPercentColorScale (metric) {
const color = d3.scale.linear().domain([0, 25, 50, 75, 100]);
color.range(metric.direction === 1 ?
- ['#ee0000', '#f77700', '#ffee00', '#80cc00', '#00aa00'] :
- ['#00aa00', '#80cc00', '#ffee00', '#f77700', '#ee0000']);
+ ['#d4333f', '#ed7d20', '#eabe06', '#b0d513', '#00aa00'] :
+ ['#00aa00', '#b0d513', '#eabe06', '#ed7d20', '#d4333f']);
return color;
}
getRatingColorScale () {
return d3.scale.linear()
.domain([1, 2, 3, 4, 5])
- .range(['#00aa00', '#80cc00', '#ffee00', '#f77700', '#ee0000']);
+ .range(['#00aa00', '#b0d513', '#eabe06', '#ed7d20', '#d4333f']);
}
getLevelColorScale () {
return d3.scale.ordinal()
.domain(['ERROR', 'WARN', 'OK', 'NONE'])
- .range(['#d4333f', '#ff9900', '#85bb43', '##b4b4b4']);
+ .range(['#d4333f', '#ed7d20', '#00aa00', '#b4b4b4']);
}
getScale () {
diff --git a/server/sonar-web/src/main/js/apps/overview/styles.css b/server/sonar-web/src/main/js/apps/overview/styles.css
index 5778a0ceaef..609305faa34 100644
--- a/server/sonar-web/src/main/js/apps/overview/styles.css
+++ b/server/sonar-web/src/main/js/apps/overview/styles.css
@@ -110,7 +110,7 @@
}
.overview-quality-gate-condition-warn {
- border-color: #f90;
+ border-color: #ed7d20;
}
.overview-quality-gate-condition-error .overview-quality-gate-threshold {
@@ -118,7 +118,7 @@
}
.overview-quality-gate-condition-warn .overview-quality-gate-threshold {
- color: #f90;
+ color: #ed7d20;
}