refactor(traffic): use default y axis split line color

This commit is contained in:
Sergey Andrievskiy 2019-06-21 18:50:23 +03:00
parent 7678769e2f
commit a415e3919e
5 changed files with 8 additions and 7 deletions

View file

@ -64,13 +64,14 @@ export const CORPORATE_THEME = {
},
traffic: {
colorBlack: theme.bg,
tooltipBg: theme.bg,
tooltipBorderColor: theme.border2,
tooltipExtraCss: 'border-radius: 10px; padding: 4px 16px;',
tooltipTextColor: theme.fgText,
tooltipFontWeight: 'normal',
yAxisSplitLine: theme.separator,
lineBg: theme.primary,
lineShadowBlur: '0',
itemColor: theme.border4,

View file

@ -64,13 +64,14 @@ export const COSMIC_THEME = {
},
traffic: {
colorBlack: '#000000',
tooltipBg: theme.bg,
tooltipBorderColor: theme.border2,
tooltipExtraCss: 'box-shadow: 0px 2px 46px 0 rgba(50, 50, 89); border-radius: 10px; padding: 4px 16px;',
tooltipTextColor: theme.fgText,
tooltipFontWeight: 'normal',
yAxisSplitLine: theme.separator,
lineBg: theme.border2,
lineShadowBlur: '14',
itemColor: theme.border2,

View file

@ -64,13 +64,14 @@ export const DEFAULT_THEME = {
},
traffic: {
colorBlack: '#000000',
tooltipBg: theme.bg,
tooltipBorderColor: theme.border2,
tooltipExtraCss: 'border-radius: 10px; padding: 4px 16px;',
tooltipTextColor: theme.fgText,
tooltipFontWeight: 'normal',
yAxisSplitLine: theme.separator,
lineBg: theme.border4,
lineShadowBlur: '1',
itemColor: theme.border4,

View file

@ -68,8 +68,7 @@ export class TrafficChartComponent implements AfterViewInit, OnDestroy {
splitLine: {
show: true,
lineStyle: {
color: trafficTheme.colorBlack,
opacity: 0.06,
color: trafficTheme.yAxisSplitLine,
width: '1',
},
},

View file

@ -66,8 +66,7 @@ export class StatsAreaChartComponent implements AfterViewInit, OnDestroy {
splitLine: {
show: true,
lineStyle: {
color: trafficTheme.colorBlack,
opacity: 0.06,
color: trafficTheme.yAxisSplitLine,
width: '1',
},
},