189-sketch/dsh-custom-logo0

dsh-custom-logo

Replace the DSH top-left BrandWordmark/FishLogo with your own image or text — an inline ⚙ handle inside the wordmark, no floating widget

包名
dsh-custom-logo
版本
0.1.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:189-sketch/dsh-custom-logo

Usage

  1. Hover the top-left deepseek harness wordmark → a small ⚙ handle fades in at the right edge.
  2. Click ⚙ → the settings panel opens.
  3. Choose a mode:
    • Default — close the panel; the original DSH logo returns
    • Image — upload a PNG / SVG / JPG (≤ 256 KB), pick alignment
    • Text — type your brand string, pick a color, font size, and alignment
  4. The change is instant and saved to localStorage automatically.
  5. Fold the sidebar to see the rail; your replacement does not obstruct the toggle button.

To reset, click Reset in the settings panel.

Configuration

The runtime choice is persisted in window.localStorage under dsh.custom-logo.v1. The state shape:

{
  mode: 'default' | 'image' | 'text',
  imageDataUrl: string,  // data URL; only used in image mode
  text: string,           // brand string; only used in text mode
  color: string,          // hex color; only used in text mode
  align: 'left' | 'center' | 'right',
  fontSize: number | null  // null = auto-fit the original wordmark height
}

This plugin is a workspace bundle — it does NOT receive a config argument to apply() (that channel is reserved for dynamic plugins through cordis-client-runner). Deployment defaults are encoded in src/client/index.ts.