DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
style(ui): adopt official capsule button styles in toasts
hairyfea5d212352cf
diff --git a/src/components/download-toast.tsx b/src/components/download-toast.tsxindex 098331f8..6c1e5e53 100644--- a/src/components/download-toast.tsx+++ b/src/components/download-toast.tsx@@ -2,10 +2,11 @@ import type { DownloadFinishedPayload } from '../hooks/use-harness'import { invoke } from '@tauri-apps/api/core'import { useI18n } from '../i18n/i18n-context'+// 官方按钮:胶囊形 + 中性品牌色(对应 ui-primitives Button)const btnPrimary- = 'inline-flex cursor-pointer items-center justify-center rounded-md border border-accent bg-accent px-3 py-1.5 text-[13px] text-white transition-colors hover:bg-accent2 disabled:cursor-not-allowed disabled:opacity-55'+ = 'inline-flex h-9 cursor-pointer items-center justify-center gap-1 rounded-[18px] bg-btn-fill px-3.5 text-sm leading-[22px] text-btn-ink transition-colors hover:bg-btn-fill-hover disabled:cursor-not-allowed disabled:opacity-40'const btnGhost- = 'inline-flex cursor-pointer items-center justify-center rounded-md border border-line bg-panel2 px-3 py-1.5 text-[13px] text-ink transition-colors hover:bg-panel-hover'+ = 'inline-flex h-9 cursor-pointer items-center justify-center gap-1 rounded-[18px] px-3.5 text-sm leading-[22px] text-ink transition-colors hover:bg-btn-hover active:bg-btn-active'interface DownloadToastProps {notice: DownloadFinishedPayload | nulldiff --git a/src/components/update-toast.tsx b/src/components/update-toast.tsxindex d74af549..3474c17e 100644--- a/src/components/update-toast.tsx+++ b/src/components/update-toast.tsx@@ -1,10 +1,11 @@import type { DshUpdateInfo } from '../hooks/use-harness'import { useI18n } from '../i18n/i18n-context'+// 官方按钮:胶囊形 + 中性品牌色(对应 ui-primitives Button)const btnPrimary- = 'inline-flex cursor-pointer items-center justify-center rounded-md border border-accent bg-accent px-3 py-1.5 text-[13px] text-white transition-colors hover:bg-accent2 disabled:cursor-not-allowed disabled:opacity-55'+ = 'inline-flex h-9 cursor-pointer items-center justify-center gap-1 rounded-[18px] bg-btn-fill px-3.5 text-sm leading-[22px] text-btn-ink transition-colors hover:bg-btn-fill-hover disabled:cursor-not-allowed disabled:opacity-40'const btnGhost- = 'inline-flex cursor-pointer items-center justify-center rounded-md border border-line bg-panel2 px-3 py-1.5 text-[13px] text-ink transition-colors hover:bg-panel-hover'+ = 'inline-flex h-9 cursor-pointer items-center justify-center gap-1 rounded-[18px] px-3.5 text-sm leading-[22px] text-ink transition-colors hover:bg-btn-hover active:bg-btn-active'interface UpdateToastProps {info: DshUpdateInfo | null@@ -22,7 +23,7 @@ export default function UpdateToast({ info, updating, onUpdate, onDismiss }: Upd}return (- <div className="fixed right-4 bottom-4 z-50 flex max-w-[420px] items-center gap-3 rounded-lg border border-accent/40 bg-panel px-4 py-3 shadow-lg">+ <div className="fixed right-4 bottom-4 z-50 flex max-w-[420px] items-center gap-3 rounded-lg border border-line bg-panel px-4 py-3 shadow-lg"><div className="min-w-0 flex-1"><p className="text-[13px] font-semibold text-ink">{t('update.available', { tag: info.tag })}</p><p className="mt-0.5 text-xs text-muted">{info.commit.slice(0, 7)}</p>