dsh-dream-skin 0.2.1 → 0.2.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/lib/client.js +14 -5
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -328,7 +328,7 @@ window.__ModuleLoader__.load({
328
328
 
329
329
  /** Simplified Chinese dictionary (the key-set source of truth). */
330
330
  const zh = {
331
- "skin.title": "皮肤(Mirage 幻梦)",
331
+ "skin.title": "皮肤",
332
332
  "skin.default": "默认",
333
333
  "skin.abyss": "深海渊",
334
334
  "skin.aurora": "极光",
@@ -365,7 +365,7 @@ window.__ModuleLoader__.load({
365
365
 
366
366
  /** English dictionary, checked complete against the zh key set. */
367
367
  const en = {
368
- "skin.title": "Skins (Mirage)",
368
+ "skin.title": "Skins",
369
369
  "skin.default": "Default",
370
370
  "skin.abyss": "Abyss",
371
371
  "skin.aurora": "Aurora",
@@ -1098,6 +1098,7 @@ window.__ModuleLoader__.load({
1098
1098
  "aria-pressed": gradient === g,
1099
1099
  style: {
1100
1100
  ...styles.presetswatches,
1101
+ background: g,
1101
1102
  ...(gradient === g ? { outline: "2px solid var(--dsw-alias-brand-primary)" } : {})
1102
1103
  },
1103
1104
  onClick: () => setGradient(g),
@@ -2110,6 +2111,7 @@ window.__ModuleLoader__.load({
2110
2111
  // P0: per-user accent override row.
2111
2112
  const accentStore = createAccentStore();
2112
2113
  let accentBound;
2114
+ let accentRevision = 0;
2113
2115
  const accentInjected = (actions) => {
2114
2116
  accentBound = actions;
2115
2117
  const base = resolveAccent(ctx.theme.getTheme()) || DEFAULT_ACCENT;
@@ -2117,12 +2119,19 @@ window.__ModuleLoader__.load({
2117
2119
  return {
2118
2120
  setAccent: (value) => {
2119
2121
  const applied = setAccent(ctx, value === DEFAULT_ACCENT ? null : value);
2120
- accentBound?.sync(applied || DEFAULT_ACCENT, resolveAccent(ctx.theme.getTheme()) || DEFAULT_ACCENT, 0);
2122
+ accentBound?.sync(
2123
+ applied || DEFAULT_ACCENT,
2124
+ resolveAccent(ctx.theme.getTheme()) || DEFAULT_ACCENT,
2125
+ ++accentRevision
2126
+ );
2121
2127
  },
2122
2128
  clearAccent: () => {
2123
2129
  setAccent(ctx, null);
2124
- accentBound?.sync(DEFAULT_ACCENT, resolveAccent(ctx.theme.getTheme()) || DEFAULT_ACCENT, 0);
2125
- syncSkin(ctx.theme.getTheme());
2130
+ accentBound?.sync(
2131
+ DEFAULT_ACCENT,
2132
+ resolveAccent(ctx.theme.getTheme()) || DEFAULT_ACCENT,
2133
+ ++accentRevision
2134
+ );
2126
2135
  }
2127
2136
  };
2128
2137
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-dream-skin",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "DeepSeek Harness 换肤插件 (Dream Skin for DeepSeek Harness): curated --dsw-alias-* theme presets, a custom translucent wallpaper with opacity/blur controls, theme-pack import/export + share links, per-user accent, favorites & surprise-me, and durable per-browser persistence — in the spirit of the Codex Dream Skin project.",
5
5
  "license": "MIT",
6
6
  "type": "module",