ymh0000123/dsh-theme-endfield 预览 preview

ymh0000123/dsh-theme-endfield

Plugin插件 Native原生 ⭐ 120 MIT UI & Themes界面与主题

终末地官网风格的 DSH Web 主题:奶油纸底、墨黑文字、信号黄强调、全直角工业编辑风。

Project Overview项目介绍

This is a web theme plugin built exclusively for DeepSeek Harness (DSH), modeled after the official website design of Arknights: Endfield. It features a cream paper base, dark ink text, accent colors of signal yellow and Wuling green, and a full right-angle industrial editing aesthetic. It runs only on the client side, modifying the interface via theme tokens and style overrides without changing any core DSH application code. To install it, users run the command dsh plugin --profile web add github:ymh0000123/dsh-theme-endfield via the DSH CLI, then restart or reload the DSH web profile to activate it.

The theme is targeted at DSH users who prefer the Arknights: Endfield visual style. After installation, all customizable settings are accessible through the DSH settings menu under the "Endfield Theme Settings" section. Users can toggle the theme on or off, switch between color schemes, adjust corner rounding, toggle contour background, set animation FPS, adjust contour speed, enable or disable watermarks, startup animations, and large title entrance animations. All settings are persisted via DSH's native persistent settings namespace, working correctly on both DSH Web and DSH Desktop without configuration loss from port changes.

The plugin is released under the open source MIT license, and follows accessibility best practices by respecting the system "reduce motion" setting. All animation frame rates and speeds can be adjusted independently by the user, and all setting text is available in both English and Chinese. The repository includes full documentation covering design language, feature behavior, engineering implementation details, and testing protocols, plus developer scripts for static style checks and self-testing. Partial browser-based testing requires a full local installation of Chrome or Edge to run and complete successfully.

这是一款参考《明日方舟:终末地》官网风格制作的DSH网页主题原生插件,采用奶油纸底、墨黑文字、信号黄与武陵青强调色,打造全直角工业编辑风格。插件仅在客户端运行,通过主题令牌和样式覆盖修改界面,不改动应用本身代码,可通过DSH命令行工具安装,重启或重载web配置文件后即可生效。

这款主题面向喜欢《明日方舟:终末地》设计风格的DSH用户,安装后可在DSH的「设置 › 终末地主题设置」面板调整多项参数,包括主题总开关、配色方案、边角风格、等高线背景、动画帧率、等高线速度、背景水印、启动动画、标题动画等。所有设置通过DSH持久化命名空间保存,同时支持DSH Web和DSH Desktop,不会因端口变动丢失配置。

该插件开源遵循MIT许可证,所有动态效果尊重系统「减少动态效果」的无障碍设置,帧率和动画速度可独立调整,设置文案同时支持中英文。仓库包含完整的设计规范、功能说明、工程笔记和测试文档,还附带静态校验和自检脚本供开发者使用,部分浏览器测试需要本机安装Chrome或Edge浏览器。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 no risk signal found未发现风险信号
  • This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:ymh0000123/dsh-theme-endfield

把 ymh0000123/dsh-theme-endfield 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-theme-endfield

参考《明日方舟:终末地》官网风格的 DSH Web 主题插件。

奶油纸底、墨黑文字、信号黄/武陵青强调色、全直角工业编辑风。Client 侧(client.js)通过主题令牌和样式覆盖界面;Host 侧(index.js)负责设置持久化与可选的音频通知(派生系统播放器子进程),均不修改应用代码。

版本支持

DSH 设置持久化 备注
0.2.x(在 0.2.0-rc.2 上实测) Host 导出 Config,浏览器 ctx.configForms 当前支持目标
0.1.7 – 0.1.x 同一套 Config/configForms 接缝 无需改动
≤ 0.1.5 ctx.settings.register + ctx.settingsScope 自动回落,无需配置

0.2 改动了三处本插件依赖的应用侧细节,本次已跟进(都验证过「旧写法在 0.2 上静默失效」):

  • 回合状态标签(“Deep diving…”)从 @deepseek-ai/dsh-client-ui-conversation 的渐变文字搬到 @deepseek-ai/dsh-client-ui-chat 的遮罩扫光文字,不再有 turnStatus 类名,着色改由 --dsw-alias-label-deep-diving / -shimmer 两个令牌承担,所以旧规则已删除、改在 theme.overrideTokens 层换色(实测:留着旧规则时该令牌仍是应用自带值,标签完全没有主题色);
  • 右侧栏列名由 _detailsCol 改为 _rightbarCol,且不透明底色移到列元素本身——等高线图层在右侧栏打开时不会再被整块盖住;
  • 插件卡片展示文案改由 locale/<语言>.json 的 meta.title / meta.description 提供;package.json 的 dsh.client.inject 也不再列 0.2 已删除的 @deepseek-ai/dsh-client-runtime 与 @deepseek-ai/dsh-client-ui-slots(改为列出 0.2 真正的提供方)。

安装

dsh plugin --profile web add github:ymh0000123/dsh-theme-endfield

重启或重新加载 web profile 后生效。更新插件文件时注意:Client 半(client.js)由 Host 按请求从磁盘读取,浏览器刷新即可生效;Host 半(index.js)只在 profile 启动时 import 一次,必须整进程重启 DSH 才会重新加载(dsh-hmr 的 watch 默认忽略 **/node_modules,软链安装的仓库文件不在其观察范围内)。只刷新页面时,运行的仍是启动时那份 Host 代码。卸载:

dsh plugin --profile web rm dsh-theme-endfield

功能

在 设置 › 终末地主题设置 中调整:

  • 主题总开关、谷地黄/武陵青配色、直角/圆角模式;
  • 等高线背景、动态开关、24 / 60 / 120 FPS;
  • 等高线速度 1x / 2x / 4x;
  • 可选鼠标轨迹:鼠标附近的等高线局部变形并逐渐恢复,默认关闭;
  • 背景水印及持续显示;
  • 启动加载动画;
  • 雷霆大字及入场动画;
  • 顶部余额胶囊:悬浮显示 DeepSeek API 余额与峰谷时段(高峰为工作日 9-12 点、14-18 点;周末、法定节假日与落在周末的调休日都按低谷半价),默认关闭;会话使用 dsh-codearts-auth 渠道模型时自动切换为该渠道的剩余额度与积分消耗进度,随渠道切换实时跟随,主读数可在设置中选择显示剩余或已用(详见 docs/features.md「渠道额度模式」);
  • 可选音频通知:启动音、任务开始/结束音、需要回应时提示,音量与自定义音效目录可调(默认关闭,详见 docs/audio-notifications.md)。

所有设置由 DSH 自己的设置服务持久化,与页面 origin/端口无关:在 DSH 0.2.0-rc.2 / 0.1.7-rc.1 及以后,Host index.js 导出一份字段全部 .volatile() 的 schemastery Config(命名空间 = 本插件 profile entry id theme-endfield),浏览器 client.js 通过 ctx.configForms 读写并订阅,值随 <profile>/cordis.patch.yml 落盘;在更旧的 DSH(≤ 0.1.5) 上则回落到 ctx.settings.register('dsh-theme-endfield', schema) + ctx.settingsScope(<dshHome>/settings.yaml)。两代都与页面 origin 无关,因此 DSH web 与 DSH Desktop 都能正确保存并在重启/换端口后恢复,不再使用会被 Desktop 随机端口清空的 localStorage。详见 docs/features.md 与 docs/engineering-notes.md;0.1.7 升级后旧设置需要在设置页重设一次(settings.yaml 已被 DSH 废弃,见 engineering-notes.md § DSH 0.1.7-rc.1 换掉了整套 settings API)。设置文案支持中英文;动态等高线尊重系统「减少动态效果」,动画帧率和速度可独立调整。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev DSH-EasyRewrite 下一个 Next dsh-qqbot →