From c8f6ac68fe9ec1d1d563de50f3cba944afd144c3 Mon Sep 17 00:00:00 2001 From: HomeDash Bot Date: Sat, 12 Sep 2026 07:53:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(theme):=20workspace/minimal=20=E6=B7=B1?= =?UTF-8?q?=E8=89=B2=E8=A1=A5=E9=BD=90=EF=BC=88=E4=BE=A7=E6=A0=8F=E7=99=BD?= =?UTF-8?q?=E8=89=B2=E8=8D=AF=E4=B8=B8=E3=80=81=E5=86=85=E5=B5=8C=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=99=BD=E6=A1=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 实测(computed style): - nav.side-bar 已是深色,但 .side-bar-item 仍为 rgba(255,255,255,.7) 白色药丸 - .work-space .web-content 为 rgb(255,255,255) 纯白,深色下形成刺眼白框 - .navi-ws-bar-btn / 工具条 / 提示框一并补齐深色 minimal 的纵向滚动在 1280x720 下复现不出来(scrollable=false), 需要用更矮视口复现后再修,避免凭猜测改动布局。 --- web/navi.css | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/web/navi.css b/web/navi.css index 544adbf..bc2dbdb 100644 --- a/web/navi.css +++ b/web/navi.css @@ -1738,3 +1738,47 @@ html.navi-dark body.navi-dark .navi-footer .navi-footer-sep { color: #9fb0c8 !important; } html.navi-dark body.navi-dark .navi-footer a:hover { color: #7dd3fc !important; } + +/* ── workspace / minimal 深色补齐(实测数据驱动)── + 实测:nav.side-bar 已是深色,但 .side-bar-item 仍是 rgba(255,255,255,.7) + 的白色药丸;.work-space .web-content 是纯白 —— 深色下最刺眼的两处。 */ +html.navi-dark body nav.side-bar .side-bar-item, +html.navi-dark body nav.side-bar .side-bar-item .item-icon, +html.navi-dark body nav.side-bar a, +html.navi-dark body .switch-view-buttons button { + background-color: rgba(30, 41, 59, .0) !important; + color: #cbd5e1 !important; + border-color: rgba(148, 163, 184, .22) !important; +} +html.navi-dark body nav.side-bar .side-bar-item:hover, +html.navi-dark body nav.side-bar .side-bar-item:focus, +html.navi-dark body nav.side-bar .side-bar-item.active { + background-color: rgba(51, 65, 85, .72) !important; + color: #e8eefc !important; +} +html.navi-dark body nav.side-bar .side-bar-item svg, +html.navi-dark body nav.side-bar .side-bar-item i, +html.navi-dark body nav.side-bar .side-bar-item .item-icon i { + color: #cbd5e1 !important; + fill: currentColor !important; +} +/* 内嵌应用的外框与占位:白底会在深色下形成刺眼的白框 */ +html.navi-dark body .work-space .web-content, +html.navi-dark body .work-space .web-content iframe { + background-color: #0f172a !important; +} +html.navi-dark body .work-space .navi-ws-notice, +html.navi-dark body .navi-ws-toolbar { + background-color: rgba(20, 31, 49, .91) !important; + color: #dce6f5 !important; +} +html.navi-dark body .navi-ws-bar-btn { + background-color: rgba(30, 41, 59, .85) !important; + color: #cbd5e1 !important; + border-color: rgba(148, 163, 184, .24) !important; +} +html.navi-dark body .navi-ws-bar-host, +html.navi-dark body .navi-ws-modal-title, +html.navi-dark body .navi-ws-notice-title { + color: #e8eefc !important; +}