diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-30 01:00:39 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-30 01:00:39 -0400 |
| commit | cfc5c0b022962182325d054d779bd4ab00086a10 (patch) | |
| tree | da89d2681dee78cc5ae149295e1a4fe4ad8da6f8 /scripts/theme-studio/face_data.py | |
| parent | 0f4ca99d434295b8b570e8dd5f3c49bbaa246051 (diff) | |
| download | dotemacs-cfc5c0b022962182325d054d779bd4ab00086a10.tar.gz dotemacs-cfc5c0b022962182325d054d779bd4ab00086a10.zip | |
feat(theme-studio): register nov-reading structural faces and color the preview
The nov reading view app gains six faces: a heading and link accent for each of the sepia, dark, and light palettes, seeded to match the module defaults. The book-page preview now draws each page's title in its palette's heading face and an inline phrase in its link face, iterating only the base palette faces so the structural faces color a page rather than getting blank pages of their own.
Diffstat (limited to 'scripts/theme-studio/face_data.py')
| -rw-r--r-- | scripts/theme-studio/face_data.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/theme-studio/face_data.py b/scripts/theme-studio/face_data.py index f6c0b5ca9..3eb471d7f 100644 --- a/scripts/theme-studio/face_data.py +++ b/scripts/theme-studio/face_data.py @@ -346,11 +346,20 @@ GNUS_SEED={ # nov-reading: the EPUB reading-view palettes (config faces, not a package). Each # is the buffer-local default bg+fg for a reading mode; seeded with the module's # starting hex so the studio shows sepia/dark/light from the first render. -NOV_READING_FACES=("cj/nov-reading-sepia cj/nov-reading-dark cj/nov-reading-light").split() +NOV_READING_FACES=("cj/nov-reading-sepia cj/nov-reading-dark cj/nov-reading-light " + "cj/nov-reading-sepia-heading cj/nov-reading-sepia-link " + "cj/nov-reading-dark-heading cj/nov-reading-dark-link " + "cj/nov-reading-light-heading cj/nov-reading-light-link").split() NOV_READING_SEED={ "cj/nov-reading-sepia":{"bg":"#1f1b16","fg":"#c9b187"}, "cj/nov-reading-dark":{"bg":"#15140f","fg":"#cfc8b8"}, - "cj/nov-reading-light":{"bg":"#ece3cf","fg":"#2a2622"}} + "cj/nov-reading-light":{"bg":"#ece3cf","fg":"#2a2622"}, + "cj/nov-reading-sepia-heading":{"fg":"#e6c98a"}, + "cj/nov-reading-sepia-link":{"fg":"#c98f5a","underline":True}, + "cj/nov-reading-dark-heading":{"fg":"#e8e0cc"}, + "cj/nov-reading-dark-link":{"fg":"#8fb0c4","underline":True}, + "cj/nov-reading-light-heading":{"fg":"#5a3d28"}, + "cj/nov-reading-light-link":{"fg":"#8a5a2a","underline":True}} # The bespoke package apps, single-sourced here. Each row is # (key, label, preview, FACES, prefix, SEED); add an app by adding one row. |
