Preface¶
In DeepSeek Harness (DSH), the left sidebar of both the desktop and web interfaces has long maintained a uniform style. For developers looking to add visual differentiation to the interface, existing options either require rewriting the theme or resorting to external CSS modifications. dsh-glass-sidebar injects styles directly through the plugin layer, transforming the left sidebar into a frosted glass surface that syncs with the current Windows wallpaper, all without breaking DSH’s native layout.
Plugin Overview¶
This is a cosmetic plugin that provides a frosted glass sidebar effect for the DSH Web GUI. Maintained by MrMark019, it leverages the browser’s backdrop-filter to blur the wallpaper background while keeping the center and right columns opaque, ensuring content readability. All controls are centralized under Settings → General, with no need to modify external files.
Core Features¶
The plugin takes effect through a single style rule activated by the html[data-glass-sidebar='on'] attribute. The left sidebar column (with the local class name _sidebarCol) is set to semi-transparent, with a blurred version of the current wallpaper as its background. The center and right columns remain opaque, ensuring conversation and terminal content are unaffected.
Three controls are provided in the settings:
- Sidebar glass: Toggle to enable/disable the frosted glass effect.
- Frost blur: Blur radius, range 0–40 px, default 18 px.
- Sidebar opacity: Opacity, range 20–100%, default 62%.
Changes take effect immediately; toggling the switch off removes the corresponding document attribute and custom CSS properties, restoring the interface to its default state.
Wallpaper Handling¶
The left sidebar’s background is sourced from the current Windows wallpaper. The Host process reads the wallpaper file from %APPDATA%\Microsoft\Windows\Themes\TranscodedWallpaper, detects the format via magic number, and republishes it as lib/assets/wallpaper.<ext>. This asset is served through a client route at plugins/dsh-glass-sidebar/assets/wallpaper.<ext>. On the browser side, the --dsh-glass-wallpaper parameter points to this URL. The Host injects an absolute URL in the page head, and the Client re-probes and refreshes the cache token when the window regains focus, allowing wallpaper changes to take effect without a page refresh.
When the wallpaper cannot be read (non-Windows platforms, solid color background, or unreadable file), the plugin falls back to a blue gradient background (using the --dsw-static-deepseek-500 and --dsw-static-blue-500 palette tokens). The frosted glass effect remains available in this case.
Storage & Persistence¶
Preferences are stored as .volatile() fields in the plugin’s Host Config. The Client reads and writes these fields via ctx.configForms, with persistence handled in the configuration file cordis.patch.yml (using the same seam as ui-theme). Slider values update in place without requiring a plugin restart.
The plugin does not use localStorage, because the desktop application launches the web server with --port 0, causing the page origin to change between sessions.
Implementation Details¶
- The style rule only applies to
html[data-glass-sidebar='on'], targeting the left column via the local class names_sidebarColand_scrollFade, anchoring the frame with:has(> [class*='_sidebarCol']), and clearing internal element padding via[data-slot='sidebar'] > *. - The blur layer is placed on a fixed
body::beforepseudo-element rather than the sidebar column itself, to avoid including the Windows title bar control buttons (minimize/maximize/close) in the blur region and prevent them from being clipped when collapsed. - The fallback blue background is only displayed when the wallpaper cannot be published, and is rendered across the entire window background (just like the wallpaper), so semi-transparent menus and settings overlays on the sidebar can inherit the tone, while the center column remains opaque.
- The toggle switch reuses DSH’s native Switch component, and the two sliders use native
input[type=range]elements styled consistently with system checkboxes. - The Host injects a tiny script via
webserver/index-injectin the page head, containing the persisted values, so the correct state is applied on the very first frame render.
Known Limitations¶
- The background is a wallpaper “painted behind the window,” not a view through the window to the desktop; the window itself remains opaque. Achieving a macOS-like native vibrancy effect would require Electron window material controls, which the plugin layer does not provide.
- Wallpaper changes are synced at most once when the page regains focus without a full refresh, involving a single wallpaper file fetch.
- Wallpaper reading is only supported on Windows; other platforms use the blue fallback background.
- The wallpaper format remains fixed during a session: if the format changes from PNG to JPG, the old asset extension is retained until the page is refreshed.
- Currently only the left sidebar is supported; the right sidebar, terminal, and conversation areas are out of scope.
- On macOS, the system already has native vibrancy effects; enabling this plugin adds a blue background and blur layer on top of it, rather than replacing it.
- The minimize/maximize/close control bar is an Electron native window control layer, determined by the window’s background at creation time, and cannot be made semi-transparent via a plugin.
- In narrow window layouts, the sidebar switches to a drawer overlay, at which point the effect falls back to the default solid fill.
- When
prefers-reduced-transparency: reduceis active, both the blur and blue background are removed, using a blur-free surface at 92% opacity.
Installation & Activation¶
git clone https://github.com/MrMark019/dsh-glass-sidebar.git
cd dsh-glass-sidebar
npm install # Host requires @deepseek-ai/schemastery
After installation, register the directory as a local bundle (Plugins → Add plugin), and refresh the page to load the new browser bundle. npm install is mandatory because directory/link installation does not install the bundle’s own dependencies; a missing @deepseek-ai/schemastery will cause the Host line to fail, leaving the plugin in a non-activated state.
Use Cases¶
Suitable for developers who want to add a personalized look to the DSH Web GUI, particularly those who want the left sidebar to sync with the current wallpaper while keeping other areas opaque. Note that this plugin runs with the current DSH process’s privileges; review the source code and license (MIT) before installing.
Conclusion¶
dsh-glass-sidebar modifies styles directly through the plugin layer, providing a configurable frosted glass effect for the DSH Web GUI without requiring theme rewrites or external file modifications. Its wallpaper sync and fallback mechanisms ensure usability across multiple environments, while the settings allow adjustable blur radius and opacity. For more details and source code, see the plugin directory page or the GitHub repository.