From 3142f8433474b7b8c6020f385d422777f612e303 Mon Sep 17 00:00:00 2001 From: Jokul Date: Sat, 11 Jul 2026 21:10:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20tooltip=20=E6=96=87=E5=AD=97=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E4=B8=8E=E8=83=8C=E6=99=AF=E5=90=8C=E8=89=B2=20-=20?= =?UTF-8?q?=E7=B2=BE=E7=A1=AE=E5=8C=B9=E9=85=8D=20is-dark/is-light=20?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/styles/global.css | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/styles/global.css b/src/renderer/src/styles/global.css index b16da40..87e0622 100644 --- a/src/renderer/src/styles/global.css +++ b/src/renderer/src/styles/global.css @@ -194,11 +194,27 @@ body { } /* Tooltip */ -.el-tooltip__popper { +.el-tooltip__popper.is-dark { background: var(--bg-tertiary) !important; color: var(--text-primary) !important; } +.el-tooltip__popper.is-dark .el-popper__arrow::before { + background: var(--bg-tertiary) !important; + border-color: var(--border-color) !important; +} + +.el-tooltip__popper.is-light { + background: var(--bg-secondary) !important; + color: var(--text-primary) !important; + border-color: var(--border-color) !important; +} + +.el-tooltip__popper.is-light .el-popper__arrow::before { + background: var(--bg-secondary) !important; + border-color: var(--border-color) !important; +} + /* Message */ .el-message { background: var(--bg-secondary) !important;