189-sketch/dsh-custom-logo ↗★ 0
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
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:189-sketch/dsh-custom-logo说明文档
阅读完整 README ↗Usage
- Hover the top-left
deepseek harnesswordmark → a small ⚙ handle fades in at the right edge. - Click ⚙ → the settings panel opens.
- 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
- The change is instant and saved to
localStorageautomatically. - 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.