跳到正文
Skillpedia
界面(UI/UX)28k · #9944

wox-theme-creator

它能做什么

这项技能创建或编辑 Wox 启动器的 JSON 主题文件。适合想自定义 Wox 外观,或分享自己所做主题的人。

适用场景

  • ✓当你想为 Wox 启动器设计一套新的配色主题的时候。
  • ✓当你想转换现有的 Wox 主题,并保持其外观的时候。
  • ✓当你需要调整主题中的透明度或平台特定设置的时候。

技能链接

https://github.com/Wox-launcher/Wox/blob/master/.agents/skills/wox-theme-creator/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Wox-launcher/Wox/blob/master/.agents/skills/wox-theme-creator/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请设计一款深色的 Wox 主题,带有柔和的蓝色强调色,并且容易阅读。”

每周 5 个新技能,1 分钟读完。

工作原理

你的智能体选出协调的配色,检查文字和各种状态是否清晰可读,并编写一份有效的主题文件,供你在本地测试。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Wox Theme Creator

Create a deliberately designed theme with a coherent palette, readable states, and a valid authored JSON document. Prefer schema v2 for new themes. Preserve the requested output location and existing theme identity when editing; generate a fresh UUID for a new theme.

Embedded theme editor

When invoked by Wox's theme editor, work on the supplied current draft and editable property list. These are the authoritative available fields. Apply the design guidance below; return only the requested JSON patch of changed properties, preserving unrelated values and theme identity. Do not require repository access, filesystem tools, or a new theme file. The editor validates the patch and handles preview, undo, and saving. A normal AI Chat or repository authoring session continues to use the document workflow below.

Source of truth

Paths below are relative to the Wox repository root. Read the current implementation before choosing fields; do not invent theme tokens or copy resolved runtime values into a new theme.

  • wox.core/common/theme_schema_v2.go: complete v2 document, accepted fields, color/geometry defaults, validation, and platform resolution.
  • wox.core/resource/themes/: built-in themes as working examples.
  • wox.core/common/theme_surfaces.go and theme_package.go: image surface declarations, resource validation, and package parsing.
  • wox.core/common/theme_schema_v1.go: legacy wire format and behavior, needed when converting an old theme.
  • wox.core/common/theme_runtime.go and theme.go: independent runtime representation, schema dispatch, and Wox version checks. These are not the authored JSON schema.

Each schema owns its complete document and parser. Missing SchemaVersion or historical zero means v1. Loading must not rewrite old files. Changing v2 default semantics would change sparse themes; a new format belongs in a separately registered schema, not a retrofit of v1 or v2.

Image-backed themes

Wox 2.4.4 adds optional image surfaces to schema 2. Existing v1/v2 JSON files, color defaults, window materials, and Action Panel placement are unchanged. Use MinWoxVersion: "2.4.4" when publishing a theme using these fields.

Package layout

A .wox-theme file is a ZIP archive with theme.json at its root, not inside an enclosing folder:

ming.wox-theme
  theme.json
  assets/lacquer.png
  assets/palace-frame.png
  assets/crest.png

Open the package with Wox, or select the file and invoke Wox's selection query. The installer shows its name and an Install action. Installation validates all entries before replacing <theme-directory>/<ThemeId>/; failed staging leaves the previous package intact. Plain <ThemeId>.json themes remain supported. Resource-backed themes are excluded from Cloud Sync. Theme editor color changes and Save As retain the image declarations and assets.

The package accepts PNG and JPEG images. Paths are case-sensitive, slash-separated, relative to the package root. Absolute paths, traversal, symlinks, Windows device names, and case-colliding archive entries are rejected. Limits are 128 archive entries, 32 MiB uncompressed data, and 16 megapixels across all images. Nine-slice source cuts must leave a nonempty center. Assets for inactive platforms must also be included. No network image URLs or executable theme code are supported.

Example theme.json

{
  "SchemaVersion": 2,
  "MinWoxVersion": "2.4.5",
  "ThemeId": "6cf090bd-ef04-44e9-aa61-cbe0e1dc2275",
  "ThemeName": "明",
  "BaseBackgroundColor": "#721D16",
  "BaseTextColor": "#FFF0CA",
  "BaseAccentColor": "#F4C453",
  "AppBackgroundColor": "transparent",
  "OverlayBackgroundColor": "#721D16",
  "OverlayFontColor": "#FFF0CA",
  "Surfaces": {
    "App": {
      "ContentInsets": {"Top": 110, "Right": 48, "Bottom": 32, "Left": 48},
      "Background": {
        "Source": "assets/lacquer.png",
        "Mode": "tile",
        "Size": {"Width": 128, "Height": 128}
      },
      "Frame": {
        "Source": "assets/palace-frame.png",
        "Mode": "nineSlice",
        "Slice": {"Top": 160, "Right": 96, "Bottom": 96, "Left": 96},
        "Insets": {"Top": 80, "Right": 48, "Bottom": 48, "Left": 48}
      },
      "Decorations": [{
        "Source": "assets/crest.png",
        "Anchor": "topCenter",
        "Offset": {"X": 0, "Y": 0},
        "Size": {"Width": 120, "Height": 110}
      }]
    },
    "ActionContainer": {
      "Background": {"Source": "assets/lacquer.png", "Mode": "t
常见问题

主题采用什么格式?

主题是遵循 Wox 主题规范的 JSON 文件,该技能建议新主题使用较新的版本。

它能编辑现有的主题吗?

可以。编辑时它会保留原有主题的标识,而新主题则会生成新的 ID。

我可以测试主题吗?

可以。该技能涵盖本地调试,让你看到主题在 Wox 中的实际效果。

详情

作者的原始描述

Design, create, and refine Wox theme JSON files, including schema v2 base colors, optional styles, transparency, platform overrides, and local debugging. Use for authoring themes or converting an existing theme while preserving its appearance.

repo: Wox-launcher/Wox

热度

GitHub 星标
28k
排名
#9944
许可证
GPL-3.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能