From 96ffc25862a1d5fd20af74130db1e816709e293b Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Sun, 13 Aug 2023 12:42:06 +0300 Subject: [PATCH] fix: widget-button face shadowing elfeed faces --- elfeed-summary.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/elfeed-summary.el b/elfeed-summary.el index ec33690..a95afdd 100644 --- a/elfeed-summary.el +++ b/elfeed-summary.el @@ -1,6 +1,6 @@ ;;; elfeed-summary.el --- Feed summary interface for elfeed -*- lexical-binding: t -*- -;; Copyright (C) 2022 Korytov Pavel +;; Copyright (C) 2022, 2023 Korytov Pavel ;; Author: Korytov Pavel ;; Maintainer: Korytov Pavel @@ -386,6 +386,14 @@ Useful only if `elfeed-summary-other-window' is set to t." "Face for the number of entries of an unread feed or search." :group 'elfeed-summary) +(defface elfeed-summary-button-face + '((t (:inherit bold))) + "Face for buttons in the elfeed summary buffer. + +This has to be distinct from the built-it `widget-button' face because +some themes override the foreground there, which shadows faces in the +button text." + :group 'elfeed-summary) ;;; Logic (cl-defun elfeed-summary--match-tag (query &key tags title url author title-meta) @@ -1184,6 +1192,7 @@ descent." :notify #'elfeed-summary--feed-notify :feed feed :only-read (= 0 (alist-get 'unread data)) + :button-face 'elfeed-summary-button-face text) (insert "\n")))