Function: indent-bars--depth-palette
indent-bars--depth-palette is a natively compiled function defined in
indent-bars.el.
Signature
(indent-bars--depth-palette STYLE &optional BLEND-OVERRIDE)
Documentation
Calculate the palette of depth-based colors (a vector) for STYLE.
If BLEND-OVERRIDE is set, the main color's :blend will be ignored
and this value will be used instead, for blending into the frame
background color. See indent-bars-color-by-depth.
Source Code
;; Defined in /nix/store/zkcdcnmcj3605fj09x584bf58d85brax-emacs-packages-deps/share/emacs/site-lisp/elpa/indent-bars-1.0.1/indent-bars.el
(defun indent-bars--depth-palette (style &optional blend-override)
"Calculate the palette of depth-based colors (a vector) for STYLE.
If BLEND-OVERRIDE is set, the main color's :blend will be ignored
and this value will be used instead, for blending into the frame
background color. See `indent-bars-color-by-depth'."
(when-let* ((cbd (indent-bars--style style "color-by-depth")))
(cl-destructuring-bind (&key regexp face-bg palette blend) cbd
(let ((colors
(cond
(regexp
(indent-bars--colors-from-regexp regexp face-bg))
(palette
(indent-bars--unpack-palette palette)))))
(vconcat
(if (or blend blend-override)
(mapcar (lambda (c)
(indent-bars--main-color style c blend blend-override))
colors)
colors))))))