diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-14 14:22:07 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-14 14:22:07 -0500 |
| commit | 808607872702075e638e5813f3c2958c100cdb6c (patch) | |
| tree | 33769fc694566c502fb92ededa56216aba345e0f /modules/dirvish-config.el | |
| parent | af2ad1febf87027cbd4408312c1fff2815a9a0ff (diff) | |
| download | dotemacs-808607872702075e638e5813f3c2958c100cdb6c.tar.gz dotemacs-808607872702075e638e5813f3c2958c100cdb6c.zip | |
refactor(faces): let the theme own face appearance
Strip per-module face configuration so the active theme is the single source of face styling. Removed the dired text-greying set-face-attribute calls (kept the buffer-local face-remap), the org appearance set-face-attribute calls, the highlight-indent-guides colors, the rainbow-delimiters depth colors (which were overriding the theme's blue with red), and the cj/music-* defface forms plus the emms-playlist custom-set-faces. Left nerd-icons' set-face-foreground alone, since it's runtime tint logic rather than static config. Each touched file is backed up beside it as <name>.el.faces.bak (untracked). The cj/music-* faces now come from the theme instead of the module, so until the theme provides them music rendering falls back to the default face.
Diffstat (limited to 'modules/dirvish-config.el')
| -rw-r--r-- | modules/dirvish-config.el | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/dirvish-config.el b/modules/dirvish-config.el index 79d6ff41c..e2fc19f1d 100644 --- a/modules/dirvish-config.el +++ b/modules/dirvish-config.el @@ -513,15 +513,9 @@ Uses feh on X11, swww on Wayland." ;;; ----------------------------- Dired Text Greying ---------------------------- -;; The right-column file-size attribute uses `shadow' (#969385). Match the -;; visible text faces to it so the column reads as one tone, with icon color -;; supplying the only accent. `default' is remapped buffer-locally inside -;; dired/dirvish so plain files match too — no global side effects. - -(with-eval-after-load 'dired - (set-face-attribute 'dired-directory nil :foreground 'unspecified :inherit 'shadow) - (set-face-attribute 'dired-symlink nil :foreground 'unspecified :inherit 'shadow) - (set-face-attribute 'dired-header nil :foreground 'unspecified :inherit 'shadow)) +;; `default' is remapped buffer-locally to `shadow' inside dired/dirvish (see +;; `cj/--dired-text-greyout' below) so plain files read grey, with icon color +;; the only accent. The dired text faces themselves are left to the theme. (defun cj/--dired-text-greyout () "Buffer-local: render `default' in `shadow' so plain files read grey." |
