dsh-enhance 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -31,9 +31,9 @@ DSH 打开 **Plugins** 页面 → 添加插件 → 输入 `dsh-enhance` → 安
31
31
  ### 方式二:本地 tar 包
32
32
 
33
33
  ```bash
34
- # 从 Releases 下载 dsh-enhance-0.3.1.tgz 后
34
+ # 从 Releases 下载 dsh-enhance-0.3.2.tgz 后
35
35
  cd ~/.dsh/profiles/desktop
36
- npx pnpm@11.28.5 add "file:/绝对路径/dsh-enhance-0.3.1.tgz"
36
+ npx pnpm@11.28.5 add "file:/绝对路径/dsh-enhance-0.3.2.tgz"
37
37
  ```
38
38
 
39
39
  再编辑 `~/.dsh/profiles/desktop/package.json`,把 `dsh-enhance` 加入 `dsh.profile.bundles`:
package/lib/client.js CHANGED
@@ -569,14 +569,21 @@ body:not([data-ds-dark-theme]) [data-document-markdown] {
569
569
 
570
570
  /* Dark mode: the app's label tokens resolve to near-white (label-primary #f9fafb,
571
571
  label-secondary #cfd3d6), which reads as glare against the dark sidebar surface.
572
- Redefining the two tokens inside the sidebar subtree dims only its text; the centre
573
- column, the right panel and the app's own dark palette keep their values. Measured
574
- against the dark sidebar surface this takes label-primary from ~16.6:1 to ~11:1 and
575
- label-secondary from ~11.5:1 to ~7.3:1, so both stay above WCAG AA. The variable
576
- override needs no !important: every rule above resolves through these tokens. */
572
+ Redefining the tokens inside the sidebar subtree dims only its text; the centre
573
+ column, the right panel and the app's own dark palette keep their values.
574
+
575
+ Measured live against the dark sidebar (#1b1b1c): titles and workspace names
576
+ paint through label-primary, section headings and timestamps through
577
+ label-secondary, and the overflow row ("Show N more sessions") plus the
578
+ running-status slot through label-tertiary. All three move down one step
579
+ together, so the whole column dims evenly instead of one row staying bright.
580
+ Against that surface the step lands at about 9.2:1, 6.2:1 and 6.7:1, all
581
+ still above WCAG AA. The variable override needs no !important: the rules
582
+ above, and the host's own rows, resolve through these tokens. */
577
583
  body[data-ds-dark-theme] [class*="sidebarCol"] {
578
- --dsw-alias-label-primary: #c9ced6;
579
- --dsw-alias-label-secondary: #a2a8b0;
584
+ --dsw-alias-label-primary: #bbc0c8;
585
+ --dsw-alias-label-secondary: #949aa2;
586
+ --dsw-alias-label-tertiary: #9fa4aa;
580
587
  }
581
588
 
582
589
  /* Text scale for a sidebar this plugin allows to be much narrower than upstream's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-enhance",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "DeepSeek Harness enhancements: Markdown theme for every renderer, select-text annotations with pins, a narrower sidebar, and startup defaults (maximized window, narrowest sidebar, colourful running marker). 中文:DSH 增强插件——Markdown 主题、划词批注、侧栏宽度、启动默认状态。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",