From f36ff9da170abeada75d7c3d29ba420ffe7c02f4 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 15 Apr 2022 11:46:40 +0200 Subject: Allow using faces for colors in vtable * doc/misc/vtable.texi (Making A Table): Adjust color documentation. * lisp/emacs-lisp/vtable.el (make-vtable): Mix more. (vtable--compute-colors): Mix both foreground and background colors. (vtable--make-color-face, vtable--face-blend): New functions. (vtable--insert-line): Adjust usage. --- doc/misc/vtable.texi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'doc/misc') diff --git a/doc/misc/vtable.texi b/doc/misc/vtable.texi index 5a3957758c9..296dc520a1b 100644 --- a/doc/misc/vtable.texi +++ b/doc/misc/vtable.texi @@ -392,16 +392,18 @@ If present, this should be a list of color names to be used as the background color on the rows. If there are fewer colors here than there are rows, the rows will be repeated. The most common use case here is to have alternating background colors on the rows, so -this would usually be a list of two colors. +this would usually be a list of two colors. This can also be a list +of faces to be used. @item :column-colors If present, this should be a list of color names to be used as the background color on the columns. If there are fewer colors here than there are columns, the colors will be repeated. The most common use case here is to have alternating background colors on the columns, so -this would usually be a list of two colors. If both -@code{:row-colors} and @code{:column-colors} is present, the colors -will be ``blended'' to produce the final colors in the table. +this would usually be a list of two colors. This can also be a list +of faces to be used. If both @code{:row-colors} and +@code{:column-colors} is present, the colors will be ``blended'' to +produce the final colors in the table. @item :actions This uses the same syntax as @code{define-keymap}, but doesn't refer -- cgit v1.2.1