Function: indent-bars--current-depth-palette
indent-bars--current-depth-palette is a natively compiled function
defined in indent-bars.el.
Signature
(indent-bars--current-depth-palette STYLE)
Documentation
Colors for highlighting the current depth bar for STYLE.
A color or palette (vector) of colors is returned, which may be
nil, in which case no special current depth-coloring is used.
See indent-bars-highlight-current-depth for configuration.
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--current-depth-palette (style)
"Colors for highlighting the current depth bar for STYLE.
A color or palette (vector) of colors is returned, which may be
nil, in which case no special current depth-coloring is used.
See `indent-bars-highlight-current-depth' for configuration."
(when-let* ((hcd (indent-bars--style style "highlight-current-depth")))
(cl-destructuring-bind (&key color face face-bg
blend palette &allow-other-keys)
hcd
(let ((color
(cond
((facep face)
(funcall (if face-bg #'face-background #'face-foreground)
face nil 'default))
((and color (color-defined-p color)) color))))
(cond
;; An explicit palette
(palette
(vconcat (indent-bars--unpack-palette palette)))
;; A specified color (possibly to blend in)
(color
(if (string= color "unspecified-fg")
(setq color indent-bars-unspecified-fg-color))
(if blend
(if-let* ((palette (indent-bars--depth-palette style)))
;; blend into normal depth palette
(vconcat
(mapcar (lambda (c)
(indent-bars--blend-colors color c blend))
palette))
;; Just blend into main color
(indent-bars--blend-colors color (ibs/main-color style) blend))
color))
;; blend-only without a specified color: re-blend originals with BG
(blend
(or (indent-bars--depth-palette style blend)
(indent-bars--main-color style nil nil blend))))))))