dsh-graft-plugin 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/client.js +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-graft-plugin",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Shows which graft index a dsh session is serving and whether it still matches the code, and gives the model graft_ask, graft_grep, graft_callers, graft_skeleton and graft_map as native tools.",
5
5
  "icon": "assets/icon.png",
6
6
  "type": "module",
package/src/client.js CHANGED
@@ -182,7 +182,7 @@ window.__ModuleLoader__.load({
182
182
  ".gs-chip.gs-clickable:focus-visible{outline:2px solid var(--dsw-focus-ring-color,var(--dsw-alias-brand-primary,#4b8bd6));outline-offset:2px}",
183
183
  ".gs-viz{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;",
184
184
  "padding:0;border:0;border-radius:var(--dsw-radius-sm,8px);background:transparent;color:var(--dsw-alias-label-secondary,inherit);",
185
- "cursor:pointer;--accent:var(--dsw-alias-brand-primary,#e5484d)}",
185
+ "cursor:pointer;--accent:var(--dsh-graft-accent,#e5484d)}",
186
186
  ".gs-viz:hover{background:var(--dsw-alias-interactive-bg-hover,rgba(128,128,128,.14))}",
187
187
  ".gs-viz:disabled{opacity:.5;cursor:progress}",
188
188
  ".gs-viz.gs-err{color:var(--dsw-alias-state-error-primary,#e5484d)}",
@@ -515,7 +515,10 @@ window.__ModuleLoader__.load({
515
515
  /** The graft mark: thick trunk with a leaf, thin branches, accent node.
516
516
  * The same design as `assets/icon.svg` and the banners, at button scale
517
517
  * (trunk and branch widths match the tuned vector's tube widths).
518
- * `--accent` is set by `.gs-viz`. */
518
+ * `--accent` is set by `.gs-viz` to the graft red — deliberately NOT the
519
+ * theme's brand-primary, which some themes set to white and which then
520
+ * washes the accent out of the mark entirely; themes may opt in with
521
+ * `--dsh-graft-accent`. */
519
522
  function GraphIcon() {
520
523
  return h(
521
524
  "svg",