dsh-homepage-glass: Deep Blue Gradient Sidebar and Homepage Flowing Blue Background

Preface

The DeepSeek Harness (DSH) desktop client comes with built-in theme switching, but on Windows, the sidebar often appears as a flat solid color, visually inconsistent with the deep blue gradient found on macOS. If you wish to fix the left sidebar to a deep blue material similar to deepseek.com—and optionally enable a “slowly flowing blue” resembling the official homepage for the right-side content area in light mode—without manually modifying CSS tokens or relying on backdrop-filter approximations, the community-maintained dsh-homepage-glass by Tim5613 measures the color palette pixel-by-pixel based on official website previews and injects styles and optional WebGL backgrounds directly into the client bundle.

The following section covers the plugin’s positioning, capability boundaries, installation methods, and typical configurations.

What is this

dsh-homepage-glass is a dsh.client plugin for DSH (version 1.3.1 in current documentation, MIT License), categorized as a “Fun Theming” utility. It overrides sidebar gradients, brand blue tokens, and (optionally) the background scheme for the light mode content area at the rendering layer. The host provides dependencies, and the plugin itself has zero npm runtime dependencies.

Maintainer and Source Code:

  • Directory Page: https://www.skillhub.cn/plugins/Tim5613/dsh-homepage-glass
  • GitHub: https://github.com/Tim5613/dsh-homepage-glass

Core Features

Area Behavior
Left Sidebar Fixed gradient from blue at the top to neutral dark gray at the bottom; does not switch with Light/Dark themes.
Right Content Area Remains opaque and follows Light/Dark themes normally.
Brand Accent Color Uses official website blue #4d6bfe for primary buttons, etc. (#6799fe for Dark theme).

When the sidebar background is dark, the plugin forces text, borders, and interaction colors within the sidebar subtree to remain light, preventing unreadable “dark text on dark background” scenarios under global light mode settings.

The gradient and panel opacity are derived from pixel-level sampling of official website preview images (not visual estimation). The README provides measured hex values at various heights and details such as an approximate 8.5% white overlay on the panel.

Optional: Light Content Color Scheme (Since v1.1.0)

Path: Settings → General → “Light Content Color”. Effective only in light mode. Three options available:

Option Description
Default DSH native #ffffff
Official Website Flow Replicates the slowly flowing blue background of the deepseek.com homepage.
Misty Blue #dee5ef

“Official Website Flow” utilizes a WebGL type:"pattern" shader extracted from the official website with normalized parameters, rather than a CSS approximation. The canvas is mounted within the framework; the opaque sidebar gradient covers the left side, aligning seamlessly with the content area. The implementation includes safeguards such as 30fps throttling, pause-on-hidden-window, single-frame rendering when system animations are off, and fallback to solid colors if WebGL2 is unavailable. Preferences are persisted by the host and retained after restart.

The three background options and the sidebar top #3a4f6c are derived from the same hue. Only --dsw-alias-bg-base is modified, maintaining the relationship between framework and card rounded corners.

Known Limitations

The plugin operates at the CSS / Client Bundle layer and cannot replicate macOS window-level vibrancy (seeing the desktop through the window). The README clarifies: to achieve “seeing the desktop,” modifications to the BrowserWindow transparency and material settings within the DSH desktop host are required. The goal of this plugin is to align colors and opacity relationships 1:1 with the reference images as closely as possible.

Installation and Activation

This is a profile-level bundle, recommended to be installed from GitHub. Execute the following in your dsh profile directory (example path: ~/.dsh/profiles/desktop):

pnpm add github:Tim5613/dsh-homepage-glass

Subsequently, add the package name to dsh.profile.bundles in the profile’s package.json:

{
  "dsh": {
    "profile": {
      "bundles": [
        "...",
        "dsh-homepage-glass"
      ]
    }
  }
}

Alternatively, use the DSH plugin manager’s install_bundle with the corresponding file: path (on Windows, this needs to be formatted as file:C:/Users/<username>/.dsh/plugins/...). This tool will automatically maintain the package.json, pnpm-lock.yaml, and the bundles list.

Documentation Note: No refresh or restart required. The client bundle supports hot loading; after client.js on disk is updated, the running interface typically reflects changes within seconds.

Please read the repository source code and MIT License before installation. The plugin runs within the current DSH client process. As with any third-party bundle, you should exercise basic judgment regarding its source and permissions.

Typical Usage

  1. Complete the pnpm add and bundles configuration as described in the previous section, and confirm the client has loaded the bundle.
  2. Open DSH and observe if the left sidebar displays a fixed deep blue gradient while the right side continues to follow the light/dark theme.
  3. For a special background in the light content area: Navigate to Settings → General → Light Content Color and select one of “Default / Official Website Flow / Misty Blue”. Note that the “Official Website Flow” animation is only visible in light mode.
  4. To fine-tune the appearance without forking the entire theme system, edit lib/client.js in the repository: the six sidebar hex segments are in SIDEBAR_BG, panel density and text tokens are in section ③, and brand blue is in section ⑤ (see the “Customization” table in the README).

The core injection logic resides in lib/client.js: it injects a stylesheet into document.head and registers brand blue via ctx.theme.overrideTokens(); cleanup is handled by ctx.effect upon unmount. In case of CSS Module hash class name changes in ui-layout, the README notes the use of fallback selectors like [class*="sidebarCol"].

Use Cases and Notes

Who it is for: Developers or individual users who use the DSH desktop version long-term, want the interface to resemble the DeepSeek official website’s deep blue sidebar and brand blue, and desire the option for the official flowing blue background in light mode.

Notes:

  • The sidebar gradient in DSH is originally strongly correlated with [data-platform=darwin]; this plugin resolves issues on Windows like “gradient not appearing even after changing tokens” via tokens and subtree styling, but it remains subject to client layout and DSH version changes.
  • If system transparency effects are turned off (e.g., Windows 11 Transparency effects), backdrop-filter effects may be disabled; this plugin primarily relies on solid gradients, with blur as a bonus.
  • Colors are sampled from the public visual style of the DeepSeek official website for personal client theming; the project declares no affiliation with DeepSeek officials.

Conclusion

dsh-homepage-glass packages “measured official website colors” and “optional original shader flowing blue” into a zero-runtime-dependency client bundle. The installation path is clear; simply modifying the bundles list enables it. For details, screenshots, and implementation notes, please refer to the GitHub README:

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

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

Xiaoye