From 8878b4d9c8ba5442f2300a755022c9029d598496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=B8=80=E4=B9=8B?= Date: Mon, 16 Mar 2026 20:25:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20ScriptE?= =?UTF-8?q?ditor=20=E8=84=9A=E6=9C=AC=E5=88=97=E8=A1=A8=E7=A1=AC=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E6=9A=97=E8=89=B2=E8=83=8C=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #1258 中引入了硬编码的暗色 hex 值(#414958/#474747/#333333)和 RGB 文字颜色, 导致脚本列表在亮色模式下也显示为暗色背景。 改用 Arco Design CSS 变量(--color-fill-2, --color-text-2 等),使脚本列表 在亮色/暗色模式下都能正确显示。 --- src/pages/options/routes/script/ScriptEditor.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/pages/options/routes/script/ScriptEditor.tsx b/src/pages/options/routes/script/ScriptEditor.tsx index 40a6a694b..973432b21 100644 --- a/src/pages/options/routes/script/ScriptEditor.tsx +++ b/src/pages/options/routes/script/ScriptEditor.tsx @@ -914,10 +914,7 @@ function ScriptEditor() { )} {filteredScriptList.map((script) => { const editor = editorFindItem(script.uuid); - const colorRGB = !editor ? "173,173,173" : editor.isChanged ? "230,155,31" : "199,199,199"; const alpha = script.status === 2 ? 0.8 : 1.0; - const colorRGBA = `rgba(${colorRGB},${alpha})`; - const delBtnRGBA = `rgba(173,173,173,${alpha})`; return (