diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-25 19:50:59 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-25 19:50:59 -0400 |
| commit | c91a3ca5db9958ed1a009939bc4569731c64d559 (patch) | |
| tree | 386a84278445773ba5dd00602e3d9ae150f2135d /scripts/theme-studio/app_inventory.py | |
| parent | 7c2aa5e0418648f6982fae7add292baebc5b479f (diff) | |
| download | dotemacs-c91a3ca5db9958ed1a009939bc4569731c64d559.tar.gz dotemacs-c91a3ca5db9958ed1a009939bc4569731c64d559.zip | |
chore(theme-studio): label the EMMS app and lowercase the expanded labels
Add a display-label override for the emms inventory app (emacs multimedia system), and lowercase all the acronym-expansion labels (eat, lsp, shr, emms) so they match the lowercase package-name labels and the package ids. The hovers keep normal capitalization since they are descriptions, not labels.
Diffstat (limited to 'scripts/theme-studio/app_inventory.py')
| -rw-r--r-- | scripts/theme-studio/app_inventory.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/theme-studio/app_inventory.py b/scripts/theme-studio/app_inventory.py index ade71a0ef..0f1def0d9 100644 --- a/scripts/theme-studio/app_inventory.py +++ b/scripts/theme-studio/app_inventory.py @@ -23,6 +23,13 @@ PREVIEW_KEYS = { "markdown-mode": "markdown", } +# Custom display labels for inventory apps whose package name is an acronym +# worth spelling out (matches the bespoke EAT / LSP / SHR style: full name with +# the acronym in parentheses). +PACKAGE_LABEL_OVERRIDES = { + "emms": "emacs multimedia system (emms)", +} + def face_label(face: str, prefix: str) -> str: label = face[len(prefix) :] if face.startswith(prefix) else face @@ -43,7 +50,7 @@ def add_inventory_apps(apps: dict[str, Any], inventory_path: str) -> dict[str, A if pkg in BESPOKE_APPS or pkg in apps: continue apps[pkg] = { - "label": pkg, + "label": PACKAGE_LABEL_OVERRIDES.get(pkg, pkg), "preview": PREVIEW_KEYS.get(pkg, "generic"), "faces": [[face, face_label(face, pkg + "-"), {}] for face in inventory[pkg]], } |
