aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-28 23:17:32 -0400
committerCraig Jennings <c@cjennings.net>2026-06-28 23:17:32 -0400
commit6dcc43916810f16d5ec49c7e8b29bb303682d2bb (patch)
treea4641ab7057422222ff70ce82e862a2d593d31fe /modules
parentb04643106fb0b35cf0664a4f344653ea0ab9c356 (diff)
downloaddotemacs-6dcc43916810f16d5ec49c7e8b29bb303682d2bb.tar.gz
dotemacs-6dcc43916810f16d5ec49c7e8b29bb303682d2bb.zip
fix(music): define the playlist-header faces
The route-colors pass dropped the literal cj/music-* face definitions but left the playlist header referencing them, so every header render spammed "Invalid face reference". I restored the five as deffaces that inherit themed base faces, so the theme still owns their colors. A test asserts each referenced face is defined.
Diffstat (limited to 'modules')
-rw-r--r--modules/music-config.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/music-config.el b/modules/music-config.el
index 86f6eb130..c627d799a 100644
--- a/modules/music-config.el
+++ b/modules/music-config.el
@@ -41,6 +41,21 @@
(defvar emms-playlist-mode-map)
(defvar dirvish-mode-map)
+;; Playlist-header faces. Defined here so the `cj/music--header-text'
+;; references are valid (an undefined face spams "Invalid face reference" on
+;; every render). Appearance inherits themed base faces so the active theme
+;; owns the colors -- the literal values were dropped in the route-colors pass.
+(defface cj/music-header-face '((t :inherit shadow))
+ "Playlist-header field labels (Playlist, Current, Mode, Keys).")
+(defface cj/music-header-value-face '((t :inherit default))
+ "Playlist-header field values.")
+(defface cj/music-mode-on-face '((t :inherit warning))
+ "Active mode indicator in the playlist header.")
+(defface cj/music-mode-off-face '((t :inherit shadow))
+ "Inactive mode indicator in the playlist header.")
+(defface cj/music-keyhint-face '((t :inherit shadow))
+ "Key hints in the playlist header.")
+
;; Foreign functions used lazily after their packages load.
(declare-function emms-playlist-mode "emms-playlist-mode")
(declare-function emms-playlist-track-at "emms-playlist-mode")