From d8229bc2dc3e7a9d392dcb5d89bd4f99682e3f22 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 30 Jun 2026 01:00:39 -0400 Subject: 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. --- scripts/theme-studio/face_data.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'scripts/theme-studio/face_data.py') 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. -- cgit v1.2.3