From 2a8d746c8749b14302e86b25e8cf97e7ffc0e932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=A8await?= <1335360669@qq.com> Date: Thu, 17 Sep 2026 15:25:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(theme):=20=E8=A1=A5=E5=85=85=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E6=8F=90=E7=A4=BA=E6=A1=86=E6=9A=97=E9=BB=91=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E8=83=8C=E6=99=AF=E4=B8=8E=E6=96=87=E5=AD=97=E5=AF=B9?= =?UTF-8?q?=E6=AF=94=E5=BA=A6=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/styles/globals.css | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/web/src/styles/globals.css b/web/src/styles/globals.css index b0662e58f..96c90c149 100644 --- a/web/src/styles/globals.css +++ b/web/src/styles/globals.css @@ -1306,7 +1306,8 @@ } /* 全局轻量通知与消息提示框 */ - .ant-message-notice .ant-message-notice-content { + .ant-message-notice .ant-message-notice-content, + :where(.dark, [data-theme="dark"]) .ant-message-notice .ant-message-notice-content { color: var(--foreground) !important; background: var(--color-surface, var(--workspace-overlay-bg-strong, #ffffff)) !important; border: 1px solid var(--color-border, var(--workspace-overlay-border, rgba(0, 0, 0, 0.12))) !important; @@ -1314,13 +1315,21 @@ } .dark .ant-message-notice .ant-message-notice-content, - .dark body .ant-message-notice-content { + .dark body .ant-message-notice-content, + [data-theme="dark"] .ant-message-notice .ant-message-notice-content, + .dark .ant-message-custom-content, + .dark .ant-message-notice { color: #f4f4f5 !important; background: #1e1e20 !important; border-color: rgba(255, 255, 255, 0.16) !important; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55) !important; } + .dark .ant-message-notice-content span, + .dark .ant-message-custom-content span { + color: #f4f4f5 !important; + } + .ant-notification-notice { color: var(--foreground) !important; background: var(--color-surface, var(--workspace-overlay-bg-strong, #ffffff)) !important;