DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

butterfly301 /

butterfly301/dsh-brand-pack-loader

Topic repository only

This plugin has no description yet.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: master@5eab5a02

品牌包加载器

主题通过 pack.sidebarMark、pack.heroMark 和 pack.wordmark 分别配置侧栏标记、对话首页标记和完整字标。加载器只负责读取配置、渲染图片和注册 DSH 品牌槽位,不携带任何主题素材或文字。

此包是 dsh-pirate-mode 的组件,也可以单独安装使用。

每项可以为 false、base64 图片 data URL,或 { src, width, height, tint } 图片配置。支持 SVG、PNG、JPEG、WebP。字符串图片保留原颜色和纵横比;tint: true 将图片的透明轮廓作为遮罩,跟随宿主文字颜色。尺寸由配置提供。SVG 始终作为图片或遮罩使用,不插入为页面标记,支持内嵌位图的合成图片。

加载器通过配置行 id brand-pack-loader 读取配置表单。未配置的槽位不注册;配置清除或插件停用时释放槽位。主题素材与图片 data URL 由主题包维护。

槽位优先级为 -0.5,高于官方默认图案的 0。加载器不读写第三方浏览器存储。

- id: brand-pack-loader
  config:
    pack:
      id: example
      sidebarMark: 'data:image/png;base64,...'
      heroMark: 'data:image/png;base64,...'
      wordmark:
        src: 'data:image/svg+xml;base64,...'
        width: 160
        height: 24
        tint: true
—/ 5

No ratings yet

Manifest verification required

Commit 5eab5a02ca46

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout