From 768c5d6a54adf87c124bdf7d754437261a0c3d23 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 8 Jun 2026 06:20:00 -0500 Subject: feat(theme-selector): bespoke shr preview (themes nov, eww, and HTML mail) nov defines no faces of its own; it renders EPUBs entirely through shr, the built-in HTML renderer also behind eww, elfeed's article view, and HTML mail. Rather than a hollow nov entry, this exposes shr directly: a rendered-document preview (chapter title, section headings, body text, links, inline code, mark, strike-through, superscript, abbreviation, image slice) covering all 15 shr faces. Theming it themes every HTML reader at once. The body font (variable-pitch) stays a font-config concern and body color follows the default face, so nov needs nothing beyond shr. --- scripts/theme-selector/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts/theme-selector/README.md') diff --git a/scripts/theme-selector/README.md b/scripts/theme-selector/README.md index 0edaf1f5..b7e8f155 100644 --- a/scripts/theme-selector/README.md +++ b/scripts/theme-selector/README.md @@ -64,7 +64,7 @@ foreground and background dropdown, bold/italic toggles, an `inherit` dropdown height stepper, a contrast readout, and a per-face reset. There's a per-app reset and a text filter for the large sets. -Nineteen applications have bespoke previews that exercise nearly all of their +Twenty applications have bespoke previews that exercise nearly all of their faces: org-mode (a document plus an agenda view), magit (a status buffer plus blame, reflog, sequence, bisect, and signature rows), elfeed (a search list and log), ghostel (a mock terminal with the 16 ANSI colors), mu4e (a headers list, @@ -74,8 +74,9 @@ error-list buffer), dired, dirvish (attribute columns, vc states, media, proc, narrow), calibredb (a library listing and detail view), erc (an IRC channel), org-drill (a cloze flashcard), org-noter, signel (a Signal chat), pearl (a ticket), slack (a channel with mrkdwn, attachments, blocks, and dialogs), and -telega (chat entities, reactions, buttons, and webpage rendering). Every other -installed package is reachable too, with an editable +telega (chat entities, reactions, buttons, and webpage rendering), and shr (the +built-in HTML renderer behind nov, eww, elfeed's article view, and HTML mail, so +theming it themes all of them). Every other installed package is reachable too, with an editable table and a generic preview (each face name in its own colors), so any package can be themed. Clicking a face row flashes that face in the preview, and clicking a preview element flashes its row. -- cgit v1.2.3