aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/face_data.py
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-14 19:09:37 -0500
committerCraig Jennings <c@cjennings.net>2026-06-14 19:09:37 -0500
commit59f4f54e518db3323cd7aaabfdc48ecb2bdaf40d (patch)
tree42e8bd397a7c40ec09f8e2f108e1cd56986c0678 /scripts/theme-studio/face_data.py
parent2299d034aed1c0993fae990fcf3ddaad3bae7c97 (diff)
downloaddotemacs-59f4f54e518db3323cd7aaabfdc48ecb2bdaf40d.tar.gz
dotemacs-59f4f54e518db3323cd7aaabfdc48ecb2bdaf40d.zip
feat(theme-studio): auto-dim split preview
auto-dim-other-buffers is a package face, not a theme face, so build-inventory.el (it scans only elpa/straight packages) never listed it and the studio couldn't theme it. This adds it as a bespoke app. The preview is a vertical split: the focused window on the left in real syntax colors, the same code on the right collapsed to the single auto-dim-other-buffers face, the way Emacs renders a non-selected window. Both panes follow the language selector. A trailing row shows auto-dim-other-buffers-hide, whose foreground matches the background so it vanishes when dimmed. A #autodimtest gate covers the split, the uniform recolor, and language sync.
Diffstat (limited to 'scripts/theme-studio/face_data.py')
-rw-r--r--scripts/theme-studio/face_data.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/theme-studio/face_data.py b/scripts/theme-studio/face_data.py
index d5999f816..a662d612c 100644
--- a/scripts/theme-studio/face_data.py
+++ b/scripts/theme-studio/face_data.py
@@ -143,6 +143,12 @@ GHOSTEL_SEED={
"ghostel-color-blue":{"fg":"blue"},"ghostel-color-magenta":{"fg":"regal"},"ghostel-color-cyan":{"fg":"sage"},"ghostel-color-white":{"fg":"silver"},
"ghostel-color-bright-black":{"fg":"steel"},"ghostel-color-bright-red":{"fg":"#de4949"},"ghostel-color-bright-green":{"fg":"#84b068"},"ghostel-color-bright-yellow":{"fg":"#eed376"},
"ghostel-color-bright-blue":{"fg":"#7a9abe"},"ghostel-color-bright-magenta":{"fg":"#b07fd0"},"ghostel-color-bright-cyan":{"fg":"#7fc0a8"},"ghostel-color-bright-white":{"fg":"white"}}
+# auto-dim-other-buffers: non-selected windows recede to a faded fg on a near-black
+# bg. The -hide face keeps org hidden text invisible in a dimmed window (fg=bg).
+AUTODIM_FACES=("auto-dim-other-buffers auto-dim-other-buffers-hide").split()
+AUTODIM_SEED={
+ "auto-dim-other-buffers":{"fg":"#5e6770","bg":"#000000"},
+ "auto-dim-other-buffers-hide":{"fg":"#000000","bg":"#000000"}}
DASHBOARD_FACES=("dashboard-banner-logo-title dashboard-text-banner dashboard-heading "
"dashboard-items-face dashboard-navigator dashboard-no-items-face dashboard-footer-face dashboard-footer-icon-face").split()
DASHBOARD_SEED={