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 () {
}
.overview-quality-gate-condition-warn {
- border-color: #f90;
+ border-color: #ed7d20;
}
.overview-quality-gate-condition-error .overview-quality-gate-threshold {
}
.overview-quality-gate-condition-warn .overview-quality-gate-threshold {
- color: #f90;
+ color: #ed7d20;
}
<span class="js-pie-chart"
data-value="{{measures.coverage_raw}}"
data-max="100"
- data-color="#85bb43"
+ data-color="#00aa00"
data-base-color="#d4333f"
data-size="47"></span>
</div>
const SIZE_TO_THICKNESS_MAPPING = {
'small': 2,
'normal': 3,
- 'big': 4
+ 'big': 3
};
export default class CoverageRating extends React.Component {
if (this.props.value != null) {
const value = Number(this.props.value);
data = [
- { value, fill: this.props.muted ? '#bdbdbd' : '#85bb43' },
- { value: 100 - value, fill: this.props.muted ? '#f3f3f3' : '#d4333f' }
+ { value, fill: this.props.muted ? '#bdbdbd' : '#00aa00' },
+ { value: 100 - value, fill: '#d4333f' }
];
}
align-items: center;
width: 24px;
height: 24px;
- border: 3px solid #f3ca8e;
+ border: 3px solid #ed7d20;
border-radius: 24px;
box-sizing: border-box;
}
.duplications-rating:after {
border-radius: 24px;
- background-color: #f3ca8e;
content: "";
}
.duplications-rating-A {
- border-color: #85bb43;
+ border-color: #00aa00;
}
.duplications-rating-A:after {
display: none;
}
+.duplications-rating-B {
+ border-color: #b0d513;
+}
+
.duplications-rating-B:after {
width: 6px;
height: 6px;
+ background-color: #b0d513;
}
.duplications-rating-small.duplications-rating-B:after {
height: 12px;
}
+.duplications-rating-C {
+ border-color: #eabe06;
+}
+
.duplications-rating-C:after {
width: 8px;
height: 8px;
+ background-color: #eabe06;
}
.duplications-rating-small.duplications-rating-C:after {
}
.duplications-rating-D {
- border-color: #d4333f;
+ border-color: #ed7d20;
}
.duplications-rating-D:after {
width: 12px;
height: 12px;
- background-color: #d4333f;
+ background-color: #ed7d20;
}
.duplications-rating-small.duplications-rating-D:after {
}
.level-OK {
- background-color: #85bb43;
+ background-color: #00aa00;
}
.level-WARN {
- background-color: #f90;
+ background-color: #ed7d20;
}
.level-ERROR {
}
.rating-A {
- background-color: #0a0;
+ background-color: #00aa00;
}
a > .rating-A {
- border-bottom-color: #0a0;
+ border-bottom-color: #00aa00;
}
.rating-B {
- background-color: #80cc00;
+ background-color: #b0d513;
}
-a .rating-B { border-bottom-color: #80cc00; }
+a .rating-B { border-bottom-color: #b0d513; }
.rating-C {
- background-color: #fe0;
- color: #444;
- text-shadow: none;
+ background-color: #eabe06;
}
-a .rating-C { border-bottom-color: #fe0; }
+a .rating-C { border-bottom-color: #eabe06; }
.rating-D {
- background-color: #f77700;
+ background-color: #ed7d20;
}
-a .rating-D { border-bottom-color: #f77700; }
+a .rating-D { border-bottom-color: #ed7d20; }
.rating-E {
background-color: #e00;
export const SEVERITIES = ['BLOCKER', 'CRITICAL', 'MAJOR', 'MINOR', 'INFO'];
export const STATUSES = ['OPEN', 'REOPENED', 'CONFIRMED', 'RESOLVED', 'CLOSED'];
-export const CHART_COLORS_RANGE_PERCENT = ['#00aa00', '#80cc00', '#ffee00', '#f77700', '#ee0000'];
-export const CHART_REVERSED_COLORS_RANGE_PERCENT = ['#ee0000', '#f77700', '#ffee00', '#80cc00', '#00aa00'];
+export const CHART_COLORS_RANGE_PERCENT = ['#00aa00', '#b0d513', '#eabe06', '#ed7d20', '#d4333f'];
+export const CHART_REVERSED_COLORS_RANGE_PERCENT = ['#d4333f', '#ed7d20', '#eabe06', '#b0d513', '#00aa00'];
}
.color_OK {
- border: 2px solid #85bb43 !important;
- color: #85bb43 !important;
+ border: 2px solid #00aa00 !important;
+ color: #00aa00 !important;
}
.color_WARN {
- border: 2px solid #f90 !important;
- color: #f90 !important;
+ border: 2px solid #ed7d20 !important;
+ color: #ed7d20 !important;
}
.color_ERROR {
.formError {
display: inline-block;
- background-color: #FF9090;
+ background-color: #ed7d20;
color: #000;
padding: 0 5px;
}
@blue: #4b9fd5;
@lightBlue: #cae3f2;
+@darkBlue: darken(@blue, 20%);
+@green: #00aa00;
+@lightGreed: #b0d513;
+@yellow: #eabe06;
+@orange: #ed7d20;
@red: #d4333f;
@lightRed: #d49f98;
-@green: #85bb43;
-@yellow: #fede06;
-@orange: #f90;
@lightOrange: #f3ca8e;
@purple: #9139d4;
-@darkBlue: darken(@blue, 20%);
-
@darkColor: #262626;
@lightColor: #fff;