aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/app_inventory.py
diff options
context:
space:
mode:
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]],
}