From e019ee11fd523cef135028d33dda77531122a2f3 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sat, 18 Apr 2026 13:09:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=97=E9=BB=91=E6=A8=A1=E5=BC=8F=E4=B8=8B?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/variables.module.scss | 6 ++++-- src/layout/components/Sidebar/Logo.vue | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/assets/styles/variables.module.scss b/src/assets/styles/variables.module.scss index 899142f..8a93d3f 100644 --- a/src/assets/styles/variables.module.scss +++ b/src/assets/styles/variables.module.scss @@ -89,6 +89,8 @@ html.dark { --el-text-color-regular: #d0d0d0; --el-border-color: #434343; --el-border-color-light: #434343; + --el-menu-text-color: #d0d0d0; + --sidebar-logo-text: #d0d0d0; /* primary */ --primary-bg: #18212b; @@ -225,11 +227,11 @@ html.dark { &:not(.tags-view-container--chrome) .tags-view-wrapper .tags-view-item.active { background-color: var(--tags-card-active-bg) !important; border-color: var(--tags-card-active-border) !important; - color: var(--el-color-primary) !important; + color: var(--current-color, #409eff) !important; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); &::before { - background: var(--el-color-primary) !important; + background: var(--current-color, #409eff) !important; } } } diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue index 5c39dab..14b1e45 100644 --- a/src/layout/components/Sidebar/Logo.vue +++ b/src/layout/components/Sidebar/Logo.vue @@ -43,7 +43,7 @@ const getLogoBackground = computed(() => { // 获取Logo文字颜色 const getLogoTextColor = computed(() => { if (settingsStore.isDark) { - return 'var(--sidebar-text)' + return 'var(--sidebar-logo-text)' } if (settingsStore.navType == 3) { return variables.menuLightText