Skip to content

Commit

Permalink
transient-higher-level: Ensure box color is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Dec 4, 2023
1 parent 413310c commit b8aefce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,9 @@ See info node `(transient)Enabling and Disabling Suffixes'."

(defface transient-higher-level
`((t (:box ( :line-width ,(if (>= emacs-major-version 28) (cons -1 -1) -1)
:color ,(face-attribute 'shadow :foreground nil t)))))
:color ,(let ((color (face-attribute 'shadow :foreground nil t)))
(or (and (not (eq color 'unspecified)) color)
"grey60"))))))
"Face optionally used to highlight suffixes on higher levels.
Also see option `transient-highlight-higher-levels'."
:group 'transient-faces)
Expand Down

0 comments on commit b8aefce

Please sign in to comment.