Function: eca-table-update-faces
eca-table-update-faces is a natively compiled function defined in
eca-table.el.
Signature
(eca-table-update-faces)
Documentation
Recompute table faces from the current theme.
Sets subtle background tints on header and even-row faces.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-table.el
(defun eca-table-update-faces ()
"Recompute table faces from the current theme.
Sets subtle background tints on header and even-row faces."
(when-let* ((bg (eca-safe-face-background 'default nil t)))
(let* ((dark? (eq 'dark (frame-parameter nil 'background-mode)))
(fn (if dark? #'color-lighten-name #'color-darken-name)))
(set-face-attribute 'eca-table-header-face nil
:background (funcall fn bg 8))
(set-face-attribute 'eca-table-row-even-face nil
:background (funcall fn bg 3)))))