Function: defined-colors-with-face-attributes

defined-colors-with-face-attributes is a byte-compiled function defined in faces.el.gz.

Signature

(defined-colors-with-face-attributes &optional FRAME FOREGROUND)

Documentation

Return a list of colors supported for a particular FRAME.

See defined-colors for arguments and return value. In contrast to defined-colors the elements of the returned list are color strings with text properties, that make the color names render with the color they represent as background color (if FOREGROUND is nil; otherwise use the foreground color).

Source Code

;; Defined in /usr/src/emacs/lisp/faces.el.gz
(defun defined-colors-with-face-attributes (&optional frame foreground)
  "Return a list of colors supported for a particular FRAME.
See `defined-colors' for arguments and return value.  In contrast
to `defined-colors' the elements of the returned list are color
strings with text properties, that make the color names render
with the color they represent as background color (if FOREGROUND
is nil; otherwise use the foreground color)."
  (mapcar (lambda (color-name)
            (faces--string-with-color color-name color-name foreground))
          (defined-colors frame)))