# Changelog 本插件的所有重要变更记录于此。版本号遵循 [SemVer](https://semver.org/lang/zh-CN/)。 All notable changes to this plugin are documented here. ## [0.1.0] - 2026-09-21 ### Added / 新增 - 首个版本:DeepSeek Harness (DSH) Web GUI 的 [Dracula](https://draculatheme.com) 第三方主题插件,注册 `dracula` 主题 id 并应用官方色板。 First release: a third-party Dracula theme plugin for the DSH web GUI. - **分层背景**:按官方 VS Code 主题分层——标题栏 `#191a21`、侧栏/面板 `#21222c`、 主内容 `#282a36`、浮层 `#343746`,选中态 `#44475a`,前景 `#f8f8f2`, 七个强调色(粉/紫/青/绿/橙/红/黄)齐备。 Layered backgrounds matching the official VS Code theme, plus the full accent set. - **两层 token 覆盖**:`--dsw-alias-*` 与 `--dsw-specific-*`(气泡、输入框、菜单、 侧栏填充与导航项、tip 等 11 个表面变量)全部重映射。别名 token 定义在 `body` 样式表上,因此覆盖以内联 token 写在 `document.body.style` 上以保证级联必胜。 Both token layers remapped; alias tokens are defined on `body`, so the override is written as inline tokens on `document.body.style` to win the cascade. - **代码高亮**:重写 shiki `css-variables` 主题的 14 个变量(关键字、函数、常量、 字符串、注释、参数、标点、链接、diff 插入/删除/修改),代码块背景取官方 `editor.background` = `#282a36`。 The 14 shiki `css-variables` tokens retuned (keywords, functions, constants, strings, comments, parameters, punctuation, links, diff add/remove/edit). - **主题守护**:第三方主题 id 不会被宿主持久化,设置加载/推送/重连时内置偏好 (light/dark/system)会被重新采用。插件以 body 内联 token + `theme/change` 监听 + 1.5s 轮询三层守护自动纠正回退。 A three-layer keeper (inline tokens, `theme/change` listener, 1.5s poll) that re-asserts Dracula whenever the host re-adopts the built-in preference. - **接管开关**:设置 → General → 「接管系统主题偏好(Dracula)」,关闭后只启动时 应用一次,可正常使用内置浅/深色切换(开关状态存于 localStorage)。 An override switch in Settings → General (state in localStorage). ### Changed / 变更 - 包名 / 插件 id 统一为 `dsh-plugin-dracula-color-theme`(与仓库同名,旧名 `dsh-theme-dracula`)。重命名后需要重新安装并重启 `dsh web`。 Package/plugin id unified as `dsh-plugin-dracula-color-theme` (was `dsh-theme-dracula`); reinstalling and restarting `dsh web` is required after the rename. [0.1.0]: https://github.com/HoodyHuo/dsh-plugin-dracula-color-theme/releases/tag/v0.1.0