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
commit00c398fa13bc5ead0eabae11241dad497b3a28a0 (patch)
treeb6a87f51c194435c23a1a0ddc83a8de4412784f0 /scripts/theme-studio/app_inventory.py
parent19a812f1de3ad2de80d851242df21707057a4ae0 (diff)
downloaddotemacs-00c398fa13bc5ead0eabae11241dad497b3a28a0.tar.gz
dotemacs-00c398fa13bc5ead0eabae11241dad497b3a28a0.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 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]],
}