From 38cbf669f586929f9aeab0596a03e7ede6766c4e Mon Sep 17 00:00:00 2001 From: rogee Date: Wed, 6 Aug 2025 15:23:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BB=91=E6=9A=97=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E5=B7=A6=E4=BE=A7=E8=8F=9C=E5=8D=95=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E6=B8=85=E6=99=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/static/css/components/sidebar.css | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/web/static/css/components/sidebar.css b/web/static/css/components/sidebar.css index 5d36b81..6b78daa 100644 --- a/web/static/css/components/sidebar.css +++ b/web/static/css/components/sidebar.css @@ -188,6 +188,28 @@ color: var(--accent-600); } +/* 黑暗模式下的选中菜单样式 */ +[data-theme="dark"] .nav-link.active { + background: var(--accent-900); + color: var(--accent-200); +} + +[data-theme="dark"] .nav-link.active .nav-icon { + color: var(--accent-400); +} + +[data-theme="dark"] .nav-link.active .nav-title { + color: var(--accent-100); +} + +[data-theme="dark"] .nav-link.active .nav-subtitle { + color: var(--accent-300); +} + +[data-theme="dark"] .nav-link.active .nav-description { + color: var(--accent-400); +} + .nav-link-content { display: flex; align-items: center; @@ -249,6 +271,11 @@ border-radius: 2px; } +/* 黑暗模式下的指示器 */ +[data-theme="dark"] .nav-indicator { + background: var(--accent-400); +} + /* 系统信息 */ .sidebar-footer { padding: 16px 20px; @@ -279,6 +306,11 @@ font-weight: 600; } +/* 黑暗模式下的系统信息 */ +[data-theme="dark"] .info-value { + color: var(--accent-200); +} + .settings-button { width: 100%; padding: 8px 12px;