Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

feat(ui): align loading screen and fonts with official web shell

hairyf14ee4b3437c6
diff --git a/src/i18n/en.ts b/src/i18n/en.ts
index 56f75ff0..edb97bfb 100644
--- a/src/i18n/en.ts
+++ b/src/i18n/en.ts
@@ -3,6 +3,7 @@ import type { Translations } from './types'
export const en: Translations = {
app: {
title: 'DeepSeek Harness Desktop',
+ wordmark: 'HARNESS',
retry: 'Retry',
ready: 'DeepSeek Harness is ready!',
open_editor: 'Open DeepSeek Harness',
@@ -24,13 +25,21 @@ export const en: Translations = {
starting: 'Starting DeepSeek Harness service...',
ready: 'Service is ready',
error: 'Startup failed',
- loading: 'Loading interface...',
+ loading: 'Loading plugins…',
+ loading_plugins: 'Loading plugins…',
},
update: {
available: 'A new version {{tag}} is available. Update now?',
now: 'Update Now',
later: 'Later',
},
+ download: {
+ saved: 'Session log saved',
+ saved_to: 'Saved to',
+ failed: 'Session log download failed',
+ show_in_folder: 'Open',
+ close: 'Close',
+ },
errors: {
service_start_timeout: 'DeepSeek Harness startup timeout. Please check whether port {{port}} is occupied or the startup is too slow.',
install_verify_failed: 'Package downloaded but installation verification failed.',
diff --git a/src/i18n/types.ts b/src/i18n/types.ts
index 92aa4e51..79b91070 100644
--- a/src/i18n/types.ts
+++ b/src/i18n/types.ts
@@ -3,6 +3,7 @@ export type Language = 'en' | 'zh'
export interface Translations {
app: {
title: string
+ wordmark: string
retry: string
ready: string
open_editor: string
@@ -25,12 +26,20 @@ export interface Translations {
ready: string
error: string
loading: string
+ loading_plugins: string
}
update: {
available: string
now: string
later: string
}
+ download: {
+ saved: string
+ saved_to: string
+ failed: string
+ show_in_folder: string
+ close: string
+ }
errors: {
service_start_timeout: string
install_verify_failed: string
diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts
index 2ab431fa..daa32c27 100644
--- a/src/i18n/zh.ts
+++ b/src/i18n/zh.ts
@@ -3,6 +3,7 @@ import type { Translations } from './types'
export const zh: Translations = {
app: {
title: 'DeepSeek Harness 桌面版',
+ wordmark: 'HARNESS',
retry: '重试',
ready: 'DeepSeek Harness 已就绪!',
open_editor: '打开 DeepSeek Harness',
@@ -24,13 +25,21 @@ export const zh: Translations = {
starting: '正在启动 DeepSeek Harness 服务...',
ready: '服务已就绪',
error: '启动失败',
- loading: '正在加载界面...',
+ loading: 'Loading plugins…',
+ loading_plugins: 'Loading plugins…',
},
update: {
available: '发现新版本 {{tag}},是否立即更新?',
now: '立即更新',
later: '稍后',
},
+ download: {
+ saved: 'Session 日志已保存',
+ saved_to: '已保存到',
+ failed: 'Session 日志下载失败',
+ show_in_folder: '打开',
+ close: '关闭',
+ },
errors: {
service_start_timeout: 'DeepSeek Harness 启动超时,请检查端口 {{port}} 是否被占用或启动过慢。',
install_verify_failed: '资源包已下载,但安装校验失败。',
diff --git a/src/style/main.css b/src/style/main.css
index 284d2c54..c5b26b5c 100644
--- a/src/style/main.css
+++ b/src/style/main.css
@@ -20,6 +20,11 @@
--color-ok: #46a758;
--color-log-bg: #0a0a0c;
--color-log-ink: #b8b8c0;
+ /* 加载页 token:取值与官方 web shell boot 页(dsw alias token)逐项一致 */
+ --color-load-bg: #151517;
+ --color-load-ink: #f9fafb;
+ --color-load-muted: #adb2b8;
+ --color-load-ring: rgba(255, 255, 255, 0.12);
}
html[data-theme="light"] {
@@ -37,6 +42,11 @@ html[data-theme="light"] {
--color-ok: #2f9e44;
--color-log-bg: #fafbfc;
--color-log-ink: #40454d;
+ /* 加载页 token:light 主题对应官方 alias 值 */
+ --color-load-bg: #ffffff;
+ --color-load-ink: #0f1115;
+ --color-load-muted: #81858c;
+ --color-load-ring: rgba(0, 0, 0, 0.1);
}
@layer base {
@@ -49,7 +59,8 @@ html[data-theme="light"] {
body {
@apply overflow-hidden bg-canvas text-ink;
- font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
+ /* 字体栈与官方 web shell(--dsw-font-family)保持一致 */
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
}
}
diff --git a/tailwind.config.js b/tailwind.config.js
index dd9e3aee..b6df273a 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -22,15 +22,32 @@ export default {
'log-ink': 'var(--color-log-ink)',
},
fontFamily: {
+ // 与官方 --dsw-font-family 保持一致
sans: [
+ '-apple-system',
+ 'BlinkMacSystemFont',
'"Segoe UI"',
'"PingFang SC"',
+ '"Hiragino Sans GB"',
'"Microsoft YaHei"',
- 'system-ui',
- '-apple-system',
+ '"Helvetica Neue"',
+ 'Helvetica',
+ 'Arial',
'sans-serif',
],
- mono: ['"Cascadia Code"', '"SF Mono"', 'Consolas', '"Courier New"', 'monospace'],
+ // 与官方 --ds-font-family-code 保持一致(刻意省略裸 monospace,
+ // 避免 Windows 中文字体回退到 SimSun)
+ mono: [
+ '"SF Mono"',
+ '"JetBrains Mono"',
+ '"Fira Code"',
+ 'Consolas',
+ '"Liberation Mono"',
+ 'Menlo',
+ 'Courier',
+ '"PingFang SC"',
+ '"Microsoft YaHei"',
+ ],
},
},
},