From 5ee00bd2c4716370cc0c2d655afddf9409c55845 Mon Sep 17 00:00:00 2001 From: Rick Ye Date: Fri, 11 Sep 2026 13:38:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(ui-refactor=204/4):=20=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=88=87=20bg-field+inset=20=E9=98=B4?= =?UTF-8?q?=E5=BD=B1=EF=BC=88=E6=9B=BF=E4=BB=A3=E6=8F=8F=E8=BE=B9=E9=A3=8E?= =?UTF-8?q?=EF=BC=8C=E5=AE=BF=E4=B8=BB/=E6=8F=92=E4=BB=B6=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=BA=93=E7=BB=9F=E4=B8=80=EF=BC=89=EF=BC=9B=E6=B5=81?= =?UTF-8?q?=E5=BC=8F=E5=85=89=E6=A0=87=E5=B8=B8=E4=BA=AE=E5=AF=B9=E9=BD=90?= =?UTF-8?q?=20StreamText?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../renderer/src/components/SettingsModal.tsx | 10 +++++----- apps/desktop/src/renderer/src/styles/globals.css | 16 ++-------------- packages/plugin-sdk/src/ui.tsx | 6 +++--- 3 files changed, 10 insertions(+), 22 deletions(-) diff --git a/apps/desktop/src/renderer/src/components/SettingsModal.tsx b/apps/desktop/src/renderer/src/components/SettingsModal.tsx index 8f1187d..aa4bc45 100644 --- a/apps/desktop/src/renderer/src/components/SettingsModal.tsx +++ b/apps/desktop/src/renderer/src/components/SettingsModal.tsx @@ -263,7 +263,7 @@ const CUSTOM_API_OPTIONS: Array<{ value: string; label: string }> = [ ] const customInputCls = - 'w-full rounded-control border border-line-strong bg-surface px-2.5 py-1.5 text-[12px] text-ink outline-none placeholder:text-ink-3 focus:border-ink-3' + 'w-full rounded-control bg-field shadow-inset-field px-2.5 py-1.5 text-[12px] text-ink outline-none placeholder:text-ink-3' /** 模型设置:搜索/过滤 + @tanstack/react-virtual 虚拟列表(供应商多、模型上千时滚动不卡顿)。 * 卡片视觉按行拼装:provider 头行圆角上盖、模型行接左右边框、末行圆角下盖,行尾留组间距。 @@ -423,7 +423,7 @@ function ModelSettings({ value={keyValue} onChange={(e) => onKeyChange(e.target.value)} placeholder="输入 API Key" - className="flex-1 rounded-control border border-line-strong bg-surface px-2.5 py-1.5 font-mono text-[12px] text-ink outline-none focus:border-ink-3" + className="flex-1 rounded-control bg-field shadow-inset-field px-2.5 py-1.5 font-mono text-[12px] text-ink outline-none" />