From 73a61933c525db587a3145af72ec7b064dccba9d Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud <79562285+wangdan-fit2cloud@users.noreply.github.com> Date: Fri, 14 Jul 2023 14:34:10 +0800 Subject: [PATCH] Pr@dev@dan (#1668) #### What this PR does / why we need it? #### Summary of your change #### Please indicate you've done the following: - [ ] Made sure tests are passing and test coverage is added if needed. - [ ] Made sure commit message follow the rule of [Conventional Commits specification](https://www.conventionalcommits.org/). - [ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed. --- frontend/src/styles/element-dark.scss | 11 +++++++---- frontend/src/views/host/monitor/monitor/index.vue | 12 ++++++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/frontend/src/styles/element-dark.scss b/frontend/src/styles/element-dark.scss index 512b74157..d0e6a6c99 100644 --- a/frontend/src/styles/element-dark.scss +++ b/frontend/src/styles/element-dark.scss @@ -171,7 +171,7 @@ html.dark { .mobile-header { background-color: var(--panel-main-bg-color) !important; border-bottom: var(--panel-border); - color: #ffffff; + color: #ffffff; } } .system-label { @@ -306,7 +306,10 @@ html.dark { background-color: rgb(56, 59, 59); color: var(--el-color-warning); } - .el-dropdown-menu__item.is-disabled { - color: var(--panel-button-disabled); - } + .el-dropdown-menu__item.is-disabled { + color: var(--panel-button-disabled); + } + .el-date-editor .el-range-separator { + color: var(--panel-button-disabled); + } } diff --git a/frontend/src/views/host/monitor/monitor/index.vue b/frontend/src/views/host/monitor/monitor/index.vue index 5b1060fb4..a7fb46d81 100644 --- a/frontend/src/views/host/monitor/monitor/index.vue +++ b/frontend/src/views/host/monitor/monitor/index.vue @@ -424,6 +424,10 @@ function initCharts(chartName: string, xDatas: any, yDatas: any, yTitle: string, }, legend: { data: chartName === 'loadNetworkChart' && [i18n.global.t('monitor.up'), i18n.global.t('monitor.down')], + textStyle: { + color: '#646A73', + }, + icon: 'circle', }, grid: { left: getSideWidth(chartName == 'loadNetworkChart'), @@ -481,6 +485,10 @@ function initLoadCharts(item: Monitor.MonitorData) { '15 ' + i18n.global.t('commons.units.minute'), i18n.global.t('monitor.resourceUsage'), ], + textStyle: { + color: '#646A73', + }, + icon: 'circle', }, grid: { left: '7%', right: '7%', bottom: '20%' }, xAxis: { @@ -638,6 +646,10 @@ function initIOCharts(item: Monitor.MonitorData) { i18n.global.t('monitor.readWriteCount'), i18n.global.t('monitor.readWriteTime'), ], + textStyle: { + color: '#646A73', + }, + icon: 'circle', }, grid: { left: getSideWidth(true), right: getSideWidth(true), bottom: '20%' }, xAxis: {