From bceea21f9b1c22d93498562245d6412f77359f4c Mon Sep 17 00:00:00 2001 From: MT-Mint <798521692@qq.com> Date: Thu, 23 Apr 2026 09:34:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(08-03):=20=E5=B0=86=E4=BA=A7=E7=89=A9?= =?UTF-8?q?=E5=88=97=E8=A1=A8/=E8=AF=A6=E6=83=85=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E7=A1=AC=E7=BC=96=E7=A0=81=E9=A2=9C=E8=89=B2=E5=AD=97=E9=9D=A2?= =?UTF-8?q?=E9=87=8F=E8=BF=81=E7=A7=BB=E8=87=B3=E5=B7=A5=E4=BD=9C=E5=8C=BA?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E4=BB=A4=E7=89=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将产物列表中的图标/下载按钮的硬编码颜色工具类替换为工作区主题令牌类 - 将产物详情中的 SVG 描边/填充色以及关键状态转换为主题令牌/currentColor --- .../artifacts/artifact-file-detail.tsx | 38 +++++++++---------- .../artifacts/artifact-file-list.tsx | 7 +++- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx index 58520b4d..4d3185fb 100644 --- a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx +++ b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx @@ -448,19 +448,19 @@ export function ArtifactFileDetail({ > @@ -476,9 +476,9 @@ export function ArtifactFileDetail({ > - + @@ -530,7 +530,7 @@ export function ArtifactFileDetail({ > @@ -540,7 +540,7 @@ export function ArtifactFileDetail({ width="10" height="11" rx="1.5" - stroke="#666666" + stroke="currentColor" /> @@ -564,12 +564,12 @@ export function ArtifactFileDetail({ > @@ -710,7 +710,7 @@ export function ArtifactFileDetail({ > @@ -1046,7 +1046,7 @@ function ArtifactPdfPreview({ const pageWrapper = document.createElement("div"); pageWrapper.className = - "mx-auto mb-4 w-fit rounded-md border border-[#e4e7ec] bg-white p-2 shadow-sm"; + "mx-auto mb-4 w-fit rounded-md border border-ws-e4e7ec bg-white p-2 shadow-sm"; const canvas = document.createElement("canvas"); canvas.style.width = `${viewport.width}px`; @@ -1089,8 +1089,8 @@ function ArtifactPdfPreview({ if (error) { return ( -
-
+
+

{fileName}

{error}

-
+
+
{pageCount > 0 ? t.artifactPreview.pageCountLabel(fileName, pageCount) : fileName} @@ -1323,7 +1323,7 @@ function ArtifactOfficePreview({ className={cn( "rounded px-4 py-3 text-xs whitespace-nowrap", activeSheet === sheetName - ? "bg-[#1500331a] text-[#000000]" + ? "bg-ws-1500331a text-foreground" : "text-muted-foreground hover:text-foreground", )} onClick={() => setActiveSheet(sheetName)} @@ -1713,14 +1713,14 @@ export const ArtifactZoomSelector = ({ viewBox="0 0 16 16" fill="none" > - + diff --git a/frontend/src/components/workspace/artifacts/artifact-file-list.tsx b/frontend/src/components/workspace/artifacts/artifact-file-list.tsx index 54ea9b16..9af0554b 100644 --- a/frontend/src/components/workspace/artifacts/artifact-file-list.tsx +++ b/frontend/src/components/workspace/artifacts/artifact-file-list.tsx @@ -102,7 +102,10 @@ export function ArtifactFileList({
- {getFileIcon(file, "size-9 stroke-[1px] stroke-[#333333]")} + {getFileIcon( + file, + "size-9 stroke-1 text-ws-333333 stroke-current", + )}
{getFileExtensionDisplayName(file)} file @@ -134,7 +137,7 @@ export function ArtifactFileList({ >