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.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/theme-studio/app_inventory.py b/scripts/theme-studio/app_inventory.py
index 0c55a5d4e..01dcb7db7 100644
--- a/scripts/theme-studio/app_inventory.py
+++ b/scripts/theme-studio/app_inventory.py
@@ -4,6 +4,7 @@ from __future__ import annotations
import json
import os
+from collections.abc import Sequence
from typing import Any
@@ -13,7 +14,9 @@ BESPOKE_APPS = {
"org",
"org-mode",
"mu4e",
+ "org-faces",
"ghostel",
+ "auto-dim-other-buffers",
"dashboard",
"lsp-mode",
"git-gutter",
@@ -37,7 +40,7 @@ def face_label(face: str, prefix: str) -> str:
return label.replace("-face", "").replace("-", " ")
-def face_rows(names: list[str], prefix: str, seed: dict[str, dict[str, Any]]) -> list[list[Any]]:
+def face_rows(names: Sequence[str], prefix: str, seed: dict[str, dict[str, Any]]) -> list[list[Any]]:
return [[face, face_label(face, prefix), seed.get(face, {})] for face in names]
@@ -45,7 +48,8 @@ def add_inventory_apps(apps: dict[str, Any], inventory_path: str) -> dict[str, A
"""Add generic editable apps for installed packages not covered by bespoke previews."""
if not os.path.exists(inventory_path):
return apps
- inventory = json.load(open(inventory_path))
+ with open(inventory_path) as src:
+ inventory = json.load(src)
for pkg in sorted(inventory):
if pkg in BESPOKE_APPS or pkg in apps:
continue