From 36e702977f8da0c5131c1e01e4bfbcf47c5814cb Mon Sep 17 00:00:00 2001 From: subtrack Date: Tue, 20 Oct 2026 00:58:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(v1.9.5):=20=E4=BF=AE=E5=A4=8D=20asg/ticket/?= =?UTF-8?q?summary=20=E6=96=87=E5=AD=97=E5=9C=A8=E6=9A=97=E8=89=B2?= =?UTF-8?q?=E5=8F=98=E6=B7=B1=E3=80=81=E4=BA=AE=E8=89=B2=E5=8F=98=E6=B5=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 根因:v1.9.2 重构时新增的 --ink-2 等色板变量与旧样式里的同名文字变量冲突,导致打手条、票签、订阅摘要继承到背景色当作文字色 - 为 .asg / .ticket / .summary 及其子元素显式指定文字色:亮色用 --ink-ink,暗色用 #dff5ea - 到期状态单独取值:正常绿、临期橙、逾期红,暗色下同步提亮 - 版本 1.9.4 → 1.9.5;仅前端样式 --- internal/web/static/app.css | 23 ++++++++++++++++++++++- main.go | 2 +- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/internal/web/static/app.css b/internal/web/static/app.css index 03a8af5..26e446f 100644 --- a/internal/web/static/app.css +++ b/internal/web/static/app.css @@ -1402,4 +1402,25 @@ a:hover { color: var(--ink-green-3); } [data-bs-theme="dark"] .table thead th, [data-theme="dark"] .table thead th { color: var(--ink-muted) !important; } .task-meta, .task-sub, .task-note { color: #55705f !important; } [data-bs-theme="dark"] .task-meta, [data-theme="dark"] .task-meta, -[data-bs-theme="dark"] .task-sub, [data-theme="dark"] .task-sub { color: #9dbbac !important; } \ No newline at end of file +[data-bs-theme="dark"] .task-sub, [data-theme="dark"] .task-sub { color: #9dbbac !important; } +/* ---------- v1.9.5:修复 asg / ticket / summary 文字反色 ---------- */ +.asg, .asg-name, .asg b, .asg span, +.ticket, .ticket b, .ticket span, .ticket em, +.summary, .summary b, .summary span, .summary em, +.summary .due, .summary .due-ok, .summary .due-soon { + color: var(--ink-ink) !important; +} +.asg i, .asg .dot { border-color: var(--ink-line) !important; } +.summary .due-ok { color: var(--bs-success) !important; font-weight: 700; } +.summary .due-soon { color: #b8792a !important; } +.summary .due-late { color: #c4453d !important; } +.ticket { background: var(--ink-grad-soft) !important; border: 1px solid var(--ink-line); } +[data-theme="dark"] .asg, [data-theme="dark"] .asg-name, [data-theme="dark"] .asg b, [data-theme="dark"] .asg span, +[data-theme="dark"] .ticket, [data-theme="dark"] .ticket b, [data-theme="dark"] .ticket span, [data-theme="dark"] .ticket em, +[data-theme="dark"] .summary, [data-theme="dark"] .summary b, [data-theme="dark"] .summary span, [data-theme="dark"] .summary em, +[data-bs-theme="dark"] .asg, [data-bs-theme="dark"] .asg-name, [data-bs-theme="dark"] .asg b, [data-bs-theme="dark"] .asg span, +[data-bs-theme="dark"] .ticket, [data-bs-theme="dark"] .ticket b, [data-bs-theme="dark"] .ticket span, [data-bs-theme="dark"] .ticket em, +[data-bs-theme="dark"] .summary, [data-bs-theme="dark"] .summary b, [data-bs-theme="dark"] .summary span, [data-bs-theme="dark"] .summary em { + color: #dff5ea !important; +} +[data-theme="dark"] .summary .due-ok, [data-bs-theme="dark"] .summary .due-ok { color: #63d6ad !important; } \ No newline at end of file diff --git a/main.go b/main.go index d6783d8..ab48240 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,7 @@ import ( "daili/internal/web" ) -const version = "1.9.4" +const version = "1.9.5" func main() { cfgFlag := flag.String("config", "", "配置文件路径(默认:exe 同级的 "+config.FileName+")")