Closed seagle0128 closed 1 year ago
Thanks. It's treated more or less as a variable rather than a face. Did you run into some problems with the current behavior?
When I define the face as below
(defface posframe-border
`((t (:inherit region)))
"Face used by the `posframe' border.")
(defface eldoc-box-border
`((t (:inherit posframe-border)))
"Face used by `eldoc-box`.")
Now evaluate the snippet
(face-attribute 'eldoc-box-border :background) ;; => unspecified
(face-attribute 'eldoc-box-border :background nil t) ;; => "#42444a" on my env
Fair enough. I made the change you suggested. Thanks.
Thanks! Closded by 2070e2fc165106cf15cc1eb7e44ecb9e98a29dec
https://github.com/casouri/eldoc-box/blob/049eacfd9808c446d93891b4d3332f5d62c0c053/eldoc-box.el#L479
should be
(face-attribute 'eldoc-box-border :background nil t)
to get the inherited background color.