Function: eca-chat--update-expandable-block-faces
eca-chat--update-expandable-block-faces is a natively compiled
function defined in eca-chat-expandable.el.
Signature
(eca-chat--update-expandable-block-faces)
Documentation
Recompute expandable-block background faces from the current theme.
Shift percentages are controlled by eca-chat-expandable-block-bg-shift-1
and eca-chat-expandable-block-bg-shift-2. Lightens for dark themes,
darkens for light themes.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-expandable.el
;;;; Functions
(defun eca-chat--update-expandable-block-faces ()
"Recompute expandable-block background faces from the current theme.
Shift percentages are controlled by `eca-chat-expandable-block-bg-shift-1'
and `eca-chat-expandable-block-bg-shift-2'. Lightens for dark themes,
darkens for light themes."
(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))
(bg1 (funcall fn bg eca-chat-expandable-block-bg-shift-1))
(bg2 (funcall fn bg eca-chat-expandable-block-bg-shift-2)))
(set-face-attribute 'eca-chat-expandable-block-1-face nil :background bg1)
(set-face-attribute 'eca-chat-expandable-block-2-face nil :background bg2))))