From 9fbe9b6bc2ae4c372f8e3c68e2be3e6295c982ae Mon Sep 17 00:00:00 2001 From: Sergey Andrievskiy Date: Fri, 21 Jun 2019 21:36:40 +0300 Subject: [PATCH] refactor(echarts): update js theme --- src/app/@theme/styles/theme.corporate.ts | 10 +++++----- src/app/@theme/styles/theme.cosmic.ts | 10 +++++----- src/app/@theme/styles/theme.default.ts | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/app/@theme/styles/theme.corporate.ts b/src/app/@theme/styles/theme.corporate.ts index 7f12d18d..7076e95e 100644 --- a/src/app/@theme/styles/theme.corporate.ts +++ b/src/app/@theme/styles/theme.corporate.ts @@ -172,12 +172,12 @@ export const CORPORATE_THEME = { }, echarts: { - bg: '#ffffff', - textColor: '#484848', - axisLineColor: '#bbbbbb', - splitLineColor: '#ebeef2', + bg: theme.bg, + textColor: theme.fgText, + axisLineColor: theme.fgText, + splitLineColor: theme.separator, itemHoverShadowColor: 'rgba(0, 0, 0, 0.5)', - tooltipBackgroundColor: '#6a7985', + tooltipBackgroundColor: theme.primary, areaOpacity: '0.7', }, diff --git a/src/app/@theme/styles/theme.cosmic.ts b/src/app/@theme/styles/theme.cosmic.ts index 7e527469..a5fc808d 100644 --- a/src/app/@theme/styles/theme.cosmic.ts +++ b/src/app/@theme/styles/theme.cosmic.ts @@ -172,12 +172,12 @@ export const COSMIC_THEME = { }, echarts: { - bg: '#3d3780', - textColor: '#ffffff', - axisLineColor: '#a1a1e5', - splitLineColor: '#342e73', + bg: theme.bg, + textColor: theme.fgText, + axisLineColor: theme.fgText, + splitLineColor: theme.separator, itemHoverShadowColor: 'rgba(0, 0, 0, 0.5)', - tooltipBackgroundColor: '#6a7985', + tooltipBackgroundColor: theme.primary, areaOpacity: '1', }, diff --git a/src/app/@theme/styles/theme.default.ts b/src/app/@theme/styles/theme.default.ts index 76c3b34f..550ca787 100644 --- a/src/app/@theme/styles/theme.default.ts +++ b/src/app/@theme/styles/theme.default.ts @@ -172,12 +172,12 @@ export const DEFAULT_THEME = { }, echarts: { - bg: '#ffffff', - textColor: '#484848', - axisLineColor: '#bbbbbb', - splitLineColor: '#ebeef2', + bg: theme.bg, + textColor: theme.fgText, + axisLineColor: theme.fgText, + splitLineColor: theme.separator, itemHoverShadowColor: 'rgba(0, 0, 0, 0.5)', - tooltipBackgroundColor: '#6a7985', + tooltipBackgroundColor: theme.primary, areaOpacity: '0.7', },