Function: doom-modeline--create-bar-image
doom-modeline--create-bar-image is a natively compiled function
defined in doom-modeline-core.el.
Signature
(doom-modeline--create-bar-image FACE WIDTH HEIGHT)
Documentation
Create the bar image.
Use FACE for the bar, WIDTH and HEIGHT are the image size in pixels.
Source Code
;; Defined in /nix/store/1lcicrdd2r4b8rkc91nnn74ymk1jl6yd-emacs-packages-deps/share/emacs/site-lisp/elpa/doom-modeline-20260928.1632/doom-modeline-core.el
(defun doom-modeline--create-bar-image (face width height)
"Create the bar image.
Use FACE for the bar, WIDTH and HEIGHT are the image size in pixels."
(when (and (image-type-available-p 'pbm)
(numberp width) (> width 0)
(numberp height) (> height 0))
(propertize
" " 'display
(let ((color (or (face-background face nil t) "None")))
(ignore-errors
(create-image
(concat (format "P1\n%i %i\n" width height)
(make-string (* width height) ?1)
"\n")
'pbm t :scale 1 :foreground color :ascent 'center))))))