diff --git a/frontend/src/components/v-charts/components/Line.vue b/frontend/src/components/v-charts/components/Line.vue index 0a408257f..0907d4283 100644 --- a/frontend/src/components/v-charts/components/Line.vue +++ b/frontend/src/components/v-charts/components/Line.vue @@ -30,10 +30,24 @@ const props = defineProps({ option: { type: Object, required: true, - }, // option: { title , xData, yData, formatStr, yAxis, grid, tooltip} + }, }); const seriesStyle = [ + { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: getComputedStyle(document.documentElement).getPropertyValue('--panel-color-primary').trim(), + }, + { + offset: 1, + color: getComputedStyle(document.documentElement) + .getPropertyValue('--panel-color-primary-light-9') + .trim(), + }, + ]), + }, { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ { @@ -98,6 +112,7 @@ function initChart() { series.push({ name: item?.name, type: 'line', + itemStyle: seriesStyle[index + 2], areaStyle: seriesStyle[index], data: item?.data, showSymbol: false, diff --git a/frontend/src/styles/element-dark.scss b/frontend/src/styles/element-dark.scss index 6d7263cf9..b5fc16d65 100644 --- a/frontend/src/styles/element-dark.scss +++ b/frontend/src/styles/element-dark.scss @@ -443,8 +443,4 @@ html.dark { color: #ffffff; background-color: var(--panel-main-bg-color-10) !important; } - - .el-loading-mask { - background-color: rgba(36, 38, 51, 0.8); - } } \ No newline at end of file diff --git a/frontend/src/views/login/components/login-form.vue b/frontend/src/views/login/components/login-form.vue index b73edc3ce..4589c253f 100644 --- a/frontend/src/views/login/components/login-form.vue +++ b/frontend/src/views/login/components/login-form.vue @@ -559,4 +559,8 @@ onMounted(() => { color: #005eeb !important; background-color: #e5eefd !important; } + +:deep(.el-loading-mask) { + background-color: rgba(229, 238, 253, 0.8) !important; +}