From ea62767bbbb1695fa941aa4be848bb3ac8545748 Mon Sep 17 00:00:00 2001 From: ymq Date: Fri, 18 Sep 2026 14:04:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(theme):=20=E7=A1=AC=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E6=9A=97=E8=89=B2=E5=AD=97=E4=BD=93=E8=89=B2=E6=94=B9var(--ink?= =?UTF-8?q?-N)=E4=B8=BB=E9=A2=98=E5=8F=98=E9=87=8F(7=E6=96=87=E4=BB=B6)?= =?UTF-8?q?=E2=80=94=E2=80=94=E6=9A=97=E8=89=B2=E4=B8=BB=E9=A2=98=E4=B8=8B?= =?UTF-8?q?=E6=B7=B1=E8=89=B2=E6=96=87=E5=AD=97=E4=B8=8D=E5=8F=AF=E8=A7=81?= =?UTF-8?q?=E6=B2=BB=E7=90=862026-09-17?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/cockpit_cards.dspy | 2 +- wwwroot/api/cockpit_timeline.dspy | 2 +- wwwroot/api/my_todos_popup.dspy | 4 ++-- wwwroot/api/task_io.dspy | 4 ++-- wwwroot/api/todo_detail.dspy | 6 +++--- wwwroot/api/workspace_files.dspy | 2 +- wwwroot/sd_org_remote/index.ui | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/wwwroot/api/cockpit_cards.dspy b/wwwroot/api/cockpit_cards.dspy index e1ab619..04cef35 100644 --- a/wwwroot/api/cockpit_cards.dspy +++ b/wwwroot/api/cockpit_cards.dspy @@ -49,7 +49,7 @@ for c in cards: "subwidgets": [ {"widgettype": "Text", "options": {"text": c["icon"], "cfontsize": 1.8}}, {"widgettype": "Text", "options": {"text": str(c["count"]), "cfontsize": 1.6, "color": c["color"], "fontWeight": "bold"}}, - {"widgettype": "Text", "options": {"text": c["title"], "cfontsize": 0.8, "color": "#475569"}}, + {"widgettype": "Text", "options": {"text": c["title"], "cfontsize": 0.8, "color": "var(--ink-3)"}}, ] }) diff --git a/wwwroot/api/cockpit_timeline.dspy b/wwwroot/api/cockpit_timeline.dspy index d9fe164..1366aee 100644 --- a/wwwroot/api/cockpit_timeline.dspy +++ b/wwwroot/api/cockpit_timeline.dspy @@ -132,7 +132,7 @@ for step in (steps or []): "subwidgets": [ {"widgettype": "Text", "options": { "text": sn, "cfontsize": 0.9, - "color": "#1e293b", "fontWeight": "500" + "color": "var(--ink-1)", "fontWeight": "500" }}, {"widgettype": "Text", "options": { "text": sc['label'], "cfontsize": 0.75, diff --git a/wwwroot/api/my_todos_popup.dspy b/wwwroot/api/my_todos_popup.dspy index c9303b9..7e80da0 100644 --- a/wwwroot/api/my_todos_popup.dspy +++ b/wwwroot/api/my_todos_popup.dspy @@ -129,7 +129,7 @@ for t in (todos or []): "options": {"text": badge, "cfontsize": 0.7, "color": "#ffffff", "padding": "1px 8px", "bgcolor": badge_color, "borderRadius": "10px", "whiteSpace": "nowrap"}}, {"widgettype": "Text", - "options": {"text": title, "cfontsize": 0.95, "color": "#0f172a"}} + "options": {"text": title, "cfontsize": 0.95, "color": "var(--ink-0)"}} ] } ] @@ -138,7 +138,7 @@ for t in (todos or []): "options": {"text": ' | '.join(meta_bits), "cfontsize": 0.7, "color": "#94a3b8"}}) if summary: sub.append({"widgettype": "Text", - "options": {"text": summary, "cfontsize": 0.78, "color": "#475569", "width": "100%"}}) + "options": {"text": summary, "cfontsize": 0.78, "color": "var(--ink-3)", "width": "100%"}}) sub.append({ "widgettype": "HBox", "options": {"width": "100%", "gap": "6px", "halign": "right"}, diff --git a/wwwroot/api/task_io.dspy b/wwwroot/api/task_io.dspy index 7375f51..7b3bb35 100644 --- a/wwwroot/api/task_io.dspy +++ b/wwwroot/api/task_io.dspy @@ -73,7 +73,7 @@ async with DBPools().sqlorContext(dbname) as sor: # 标题行:任务名 + 状态 subwidgets.append({ "widgettype": "Text", - "options": {"text": title, "halign": "left", "cfontsize": 1.15, "style": {"fontWeight": "bold", "color": "#1e293b"}}, + "options": {"text": title, "halign": "left", "cfontsize": 1.15, "style": {"fontWeight": "bold", "color": "var(--ink-1)"}}, }) subwidgets.append({ "widgettype": "HBox", @@ -99,7 +99,7 @@ async with DBPools().sqlorContext(dbname) as sor: }) subwidgets.append({ "widgettype": "Text", - "options": {"text": (description or "(无)")[:4000], "halign": "left", "cfontsize": 0.85, "color": "#334155", "wrap": True, "css": "card"}, + "options": {"text": (description or "(无)")[:4000], "halign": "left", "cfontsize": 0.85, "color": "var(--ink-2)", "wrap": True, "css": "card"}, }) # 输出 diff --git a/wwwroot/api/todo_detail.dspy b/wwwroot/api/todo_detail.dspy index a4337ee..9e9c235 100644 --- a/wwwroot/api/todo_detail.dspy +++ b/wwwroot/api/todo_detail.dspy @@ -131,7 +131,7 @@ def _file_link_row(fname, project_id, fpath): "border": "1px solid #e2e8f0", "borderRadius": "6px"}, "subwidgets": [ {"widgettype": "Text", "options": {"text": "📎 " + fname, - "cfontsize": 0.85, "color": "#334155", "flex": "1 1 auto", + "cfontsize": 0.85, "color": "var(--ink-2)", "flex": "1 1 auto", "overflow": "hidden", "textOverflow": "ellipsis", "whiteSpace": "nowrap"}}, open_btn, _btn("下载", "small", "window.open(" + _json.dumps(dl_url) + ",'_blank');") @@ -790,7 +790,7 @@ head_widgets = [{ "options": {"text": badge, "cfontsize": 0.75, "color": "#ffffff", "padding": "2px 10px", "bgcolor": badge_color, "borderRadius": "10px", "whiteSpace": "nowrap"}}, {"widgettype": "Text", - "options": {"text": title, "cfontsize": 1.05, "color": "#0f172a"}} + "options": {"text": title, "cfontsize": 1.05, "color": "var(--ink-0)"}} ] }] if sub_lines: @@ -808,7 +808,7 @@ if _file_rows: "options": {"width": "100%", "gap": "6px", "padding": "8px 14px 2px 14px"}, "subwidgets": [ {"widgettype": "Text", "options": {"otext": "📎 输出文件", "text": "📎 输出文件", "i18n": True, "cfontsize": 0.85, - "fontWeight": "bold", "color": "#334155"}} + "fontWeight": "bold", "color": "var(--ink-2)"}} ] + _file_rows }] diff --git a/wwwroot/api/workspace_files.dspy b/wwwroot/api/workspace_files.dspy index 24ea32b..4855531 100644 --- a/wwwroot/api/workspace_files.dspy +++ b/wwwroot/api/workspace_files.dspy @@ -117,7 +117,7 @@ for name in entries: "options": {"padding": "6px 10px", "alignItems": "center", "gap": "8px", "cursor": "pointer"}, "subwidgets": [ {"widgettype": "Text", "options": {"text": icon, "cfontsize": 1.2}}, - {"widgettype": "Text", "options": {"text": name, "cfontsize": 0.9, "color": "#1e293b", "halign": "left", "css": "filler"}}, + {"widgettype": "Text", "options": {"text": name, "cfontsize": 0.9, "color": "var(--ink-1)", "halign": "left", "css": "filler"}}, {"widgettype": "Text", "options": {"text": f"{size/1024:.1f}KB", "cfontsize": 0.75, "color": "#94a3b8"}}, ], "binds": [{"wid": "self", "event": "click", "actiontype": "script", "target": "self", "script": select_script}] diff --git a/wwwroot/sd_org_remote/index.ui b/wwwroot/sd_org_remote/index.ui index 34a7c2a..2543bb0 100644 --- a/wwwroot/sd_org_remote/index.ui +++ b/wwwroot/sd_org_remote/index.ui @@ -175,7 +175,7 @@ "text": "", "whiteSpace": "pre-wrap", "cfontsize": 0.85, - "color": "#334155" + "color": "var(--ink-2)" } } ]