From c91a3ca5db9958ed1a009939bc4569731c64d559 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 25 Jun 2026 19:50:59 -0400 Subject: 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. --- scripts/theme-studio/app_inventory.py | 9 ++++++++- scripts/theme-studio/face_data.py | 6 +++--- scripts/theme-studio/theme-studio.html | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) (limited to 'scripts/theme-studio') 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]], } diff --git a/scripts/theme-studio/face_data.py b/scripts/theme-studio/face_data.py index 18f097abe..56a660b82 100644 --- a/scripts/theme-studio/face_data.py +++ b/scripts/theme-studio/face_data.py @@ -369,10 +369,10 @@ BESPOKE_APP_SPECS=[ ("org-faces","org-faces","orgfaces",ORGFACES_FACES,"org-faces-",ORGFACES_SEED), ("ghostel","ghostel","ghostel",GHOSTEL_FACES,"ghostel-",GHOSTEL_SEED), ("ansi-color","ansi-color","ansicolor",ANSI_COLOR_FACES,"ansi-color-",ANSI_COLOR_SEED), - ("eat","Emulate A Terminal (EAT)","eat",EAT_FACES,"eat-",EAT_SEED), + ("eat","emulate a terminal (eat)","eat",EAT_FACES,"eat-",EAT_SEED), ("auto-dim-other-buffers","auto-dim","autodim",AUTODIM_FACES,"auto-dim-other-buffers-",AUTODIM_SEED), ("dashboard","dashboard","dashboard",DASHBOARD_FACES,"dashboard-",DASHBOARD_SEED), - ("lsp-mode","Language Server Protocol (LSP)","lsp",LSP_FACES,"lsp-",LSP_SEED), + ("lsp-mode","language server protocol (lsp)","lsp",LSP_FACES,"lsp-",LSP_SEED), ("git-gutter","git-gutter","gitgutter",GITGUTTER_FACES,"git-gutter:",GITGUTTER_SEED), ("flycheck","flycheck","flycheck",FLYCHECK_FACES,"flycheck-",FLYCHECK_SEED), ("dired","dired","dired",DIRED_FACES,"dired-",DIRED_SEED), @@ -385,7 +385,7 @@ BESPOKE_APP_SPECS=[ ("pearl","pearl","pearl",PEARL_FACES,"pearl-",PEARL_SEED), ("slack","slack","slack",SLACK_FACES,"slack-",SLACK_SEED), ("telega","telega","telega",TELEGA_FACES,"telega-",TELEGA_SEED), - ("shr","Simple HTML Renderer (SHR)","shr",SHR_FACES,"shr-",SHR_SEED), + ("shr","simple html renderer (shr)","shr",SHR_FACES,"shr-",SHR_SEED), ] # Hover text for foundational/reused apps: names what consumes these faces, so diff --git a/scripts/theme-studio/theme-studio.html b/scripts/theme-studio/theme-studio.html index 13545e9e8..04facca6e 100644 --- a/scripts/theme-studio/theme-studio.html +++ b/scripts/theme-studio/theme-studio.html @@ -297,7 +297,7 @@