aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/app_inventory.py
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-25 19:50:59 -0400
committerCraig Jennings <c@cjennings.net>2026-06-25 19:50:59 -0400
commit375a873e1d7184d9a8eed0e6c722b132875f48e7 (patch)
tree9ba1fc9db951b7640b1bc1b5b898618a42887a74 /scripts/theme-studio/app_inventory.py
parent8061b508357fe546cd3c45a04647c5bcad923de5 (diff)
downloaddotemacs-375a873e1d7184d9a8eed0e6c722b132875f48e7.tar.gz
dotemacs-375a873e1d7184d9a8eed0e6c722b132875f48e7.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.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/theme-studio/app_inventory.py b/scripts/theme-studio/app_inventory.py
index ade71a0e..0f1def0d 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]],
}