Aurora Glass Skin: Adding a Frosted Glass Layer to DeepSeek Harness

Introduction

DeepSeek Harness (DSH) embraces an “everything is a plugin” design philosophy, and skin plugins are a common way the community extends the product. Existing solutions either rely on the host’s theme system or require injecting additional DOM structures, both of which can conflict with the product’s own render loop. dsh-aurora-glass takes a different approach: it registers only a theme token layer paired with a stylesheet material layer, using body[data-aurora-glass] as a gate attribute to decouple the skin from the host’s theme switching.

What It Is

dsh-aurora-glass is a dark glass skin plugin developed by maintainer lastseek. It renders no DOM of its own, makes no network requests, and does not depend on a second application. At its core is a registered theme (token layer) and a stylesheet (material layer). The material layer overlays a translucent frosted glass on top of the wallpaper via backdrop-filter, combined with a mint-green accent color and pill-shaped action buttons to form a unified visual identity.

Core Mechanism: Token and Material Layers

The plugin splits the skin into two layers:

  1. Token Layer: Generated by build.mjs from skin/tokens.json and registered as a theme definition via ctx.theme.register(...). It contains 137 color tokens covering a translucent near-black base, mint brand color, warm warning tones, glass menu surfaces, and more.

  2. Material Layer: Injected via <style id="dsh-aurora-glass-sheet">, defining the aurora wallpaper, frosted glass panels, hairline borders, mint-green signature color, and pill-shaped actions.

The token layer is written into style rules scoped to body[data-aurora-glass] rather than as inline variables directly on body. This is because the host’s theme presenter exclusively owns the inline variables on body—every theme/change event first removes the names it previously wrote before writing back the current definition. If the plugin also wrote same-named variables onto body, it would compete with the presenter over the same set of properties and be wiped out on the presenter’s next repaint, causing all tokens to become invalid. Placing the tokens inside the body[data-aurora-glass] rule in the stylesheet decouples them from that repaint loop.

Three Areas Sharing the Same Glass

The sidebar, content area, and title bar all share one single piece of glass. The frosted glass effect and blur are applied only to .frame, with background-color: rgba(4,12,11,calc(.22*alpha)) plus backdrop-filter: blur(3.6px) saturate(1.35) brightness(1.04). The sidebar inner root _quietBars, the title bar strip, and _sidebarCol / _centerCol / _mainPanel are all transparent with no borders and no shadows. Adding a separate background color or blur to any one of these panels immediately makes it look like a different material—this is exactly what caused the “left sidebar and content area look inconsistent,” “title bar looks like a bright band,” and “sidebar has a solid light-blue background” issues in earlier versions.

Appearance Settings

The plugin provides an “Aurora Glass” entry on the settings page with three options:

  • Wallpaper: Upload a local image to fill the entire window. Before upload, the image is downscaled in a canvas to a max long edge of 1920px at JPEG quality 0.82 (with iterative quality reduction until the file is under 2.6 MB). Wallpaper data is stored in localStorage['dsh-aurora-glass:photo'] (as a data URL).
  • Background Blur: 0–40px, applying filter: blur() to the wallpaper itself. Stored in localStorage['dsh-aurora-glass:blur'].
  • Background Opacity: 20–100, adjusting the entire window uniformly. All panel background colors use rgba(…, calc(base * var(--aurora-alpha))). Stored in localStorage['dsh-aurora-glass:alpha'].

“Restore Aurora” clears the wallpaper and reverts to the built-in gradient; “Reset to Default” pulls opacity back to 100.

The opacity control also updates --aurora-alpha on body.style. The desktop shell’s title bar color picker works by listening for changes to body[style] and re-sampling --dsw-specific-sidebar-fill, so the background color of the three buttons in the top-right corner changes accordingly.

Desktop App Special Handling

In the desktop App, there are three special treatments:

  1. Content area top-left border radius: Removed via --dsh-windows-content-radius: 0 combined with _centerCol { border-radius: 0 }.
  2. Title bar three-button background: On Windows, the outer shell passes --dsw-specific-sidebar-fill directly to Windows as the overlay fill color, and the overlay doesn’t honor alpha—so that area is always a solid color. The skin paints the entire 40px title bar with the same solid color --aurora-caption (a near-neutral dark tone rgb(10,16,17)), so the buttons appear to “grow” out of this strip while the remaining 99% of the window below stays glass.
  3. Title bar left-side graphic: Removed starting from version 1.3.6. On Windows, that 40px strip is a shared area between the shell and the page. The menu bar lives inside an open shadow root, which the plugin cannot access. Any self-drawn graphic could either be covered by other elements or cover other elements.
  4. “Collapse sidebar” button on the title bar left: Hidden starting from version 1.3.7. It’s a page element button[class*='_toggle'] that the desktop shell positions with fixed at (12, 6). After hiding it, the menu host reverts to left: 12px to hug the window edge. The trade-off is that with the skin active, you cannot collapse the sidebar from this button. If you want it back, simply remove the button[class*='_toggle'] { display: none } rule.

The web preview has no window frame, so none of these three treatments are visible. Please refresh the desktop App to verify.

Toggle and Exclusivity

Enabling the plugin activates the skin. The host’s appearance selector only persists the three built-in values light / dark / system; the theme ID registered by the plugin cannot be written into settings. The skin claims the appearance preference once in a brief window after each page load (first a synchronous claim, then responding to the host’s subsequent settings hydration; at most 4 attempts within 6 seconds, after which it no longer intervenes).

Therefore: if you manually switch to dark/light in Settings → General → Appearance, the skin is disabled for the current session; after a restart, the plugin will reclaim it. To permanently disable the skin, turn off “Aurora Glass” on the plugin page.

The plugin registers with colorScheme: 'dark', matching the product’s dark base, rather than pretending to support light mode.

The plugin is mutually exclusive with other skin plugins. Only one skin plugin should be enabled at a time, because both will claim the appearance preference at startup, and their material layers will stack. In practice, enabling dsh-dream-skin simultaneously results in a mixed-color artifact (“green sidebar + purple content area”). Please disable it when using this skin.

Installation

The installation command is:

plugin_manager install_bundle target: "D:\\deepseek-harness\\default-workspace\\dsh-aurora-glass"

After installation, restart DSH: client artifacts are served by the host service, and hot-reloading only works under pnpm run dev:web. When restart-required is indicated, follow the application field returned by plugin_manager.

Development and Uninstall

During development, skin/tokens.json and skin/skin.css are the source of truth, while lib/client.js is a generated artifact:

node build.mjs
node --check lib/client.js

Verification workflow (the actual loop used during this development cycle):

  1. Link the package into a temporary profile: dsh plugin --profile web add "link:D:/.../dsh-aurora-glass", and append dsh-aurora-glass to that profile’s package.json under dsh.profile.bundles;
  2. Run dsh --profile web --port 5699 --no-open, and grab the token-bearing URL from the logs;
  3. Headless browser + CDP: call Network.setCacheDisabled(true) (otherwise you’ll be serving a stale bundle), read window.__DSH_AURORA_GLASS__ to check activeId / flagged / adoptError, and take screenshot comparisons.

To uninstall, simply disable or remove the plugin from the plugin page: the theme is deregistered, the stylesheet is removed, and body[data-aurora-glass] disappears along with everything else.

Use Cases and Notes

Suitable for DSH users who want a unified, elegant appearance. The plugin runs with the current dsh process’s permissions—review the source code and license before installing. The plugin is licensed under MIT, and the source is hosted on GitHub: https://github.com/lastseek/dsh-aurora-glass

Repository and Source

  • Plugin directory: https://www.skillhub.cn/plugins/lastseek/dsh-aurora-glass
  • GitHub: https://github.com/lastseek/dsh-aurora-glass
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye