mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 03:01:11 +00:00
Back to brighter colors for metrics-on-canvas
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import _ from 'lodash';
|
||||
import d3 from 'd3';
|
||||
import { formatMetricSvg } from './string-utils';
|
||||
import { getNodeColorDark as colors } from './color-utils';
|
||||
import { colors } from './color-utils';
|
||||
import React from 'react';
|
||||
|
||||
|
||||
@@ -67,13 +67,14 @@ export function getMetricValue(metric, size) {
|
||||
export function getMetricColor(metric) {
|
||||
const selectedMetric = metric && metric.get('id');
|
||||
if (/mem/.test(selectedMetric)) {
|
||||
return colors('p', 'a');
|
||||
return 'steelBlue';
|
||||
} else if (/cpu/.test(selectedMetric)) {
|
||||
return colors('z', 'a');
|
||||
return colors('cpu');
|
||||
} else if (/files/.test(selectedMetric)) {
|
||||
return colors('t', 'a');
|
||||
// purple
|
||||
return '#9467bd';
|
||||
} else if (/load/.test(selectedMetric)) {
|
||||
return colors('a', 'a');
|
||||
return colors('load');
|
||||
}
|
||||
return 'steelBlue';
|
||||
}
|
||||
|
||||
@@ -421,7 +421,7 @@ h2 {
|
||||
.metric-fill {
|
||||
stroke: none;
|
||||
fill: #A0BE7E;
|
||||
fill-opacity: 0.5;
|
||||
fill-opacity: 0.7;
|
||||
}
|
||||
|
||||
.shadow {
|
||||
|
||||
Reference in New Issue
Block a user