fix(theme): 硬编码暗色字体色改var(--ink-N)主题变量(7文件)——暗色主题下深色文字不可见治理2026-09-17
This commit is contained in:
parent
fcb56fb814
commit
ea62767bbb
@ -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)"}},
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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"},
|
||||
|
||||
@ -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"},
|
||||
})
|
||||
|
||||
# 输出
|
||||
|
||||
@ -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
|
||||
}]
|
||||
|
||||
|
||||
@ -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}]
|
||||
|
||||
@ -175,7 +175,7 @@
|
||||
"text": "",
|
||||
"whiteSpace": "pre-wrap",
|
||||
"cfontsize": 0.85,
|
||||
"color": "#334155"
|
||||
"color": "var(--ink-2)"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user