From 23a4ac0c2156043c059d98e4e384ce587476aabe Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 4 Nov 2025 09:06:42 -0800 Subject: [PATCH] Apply a mask heuristic to icons This heuristic will make a background transparent as long as that background color appears in all 4 corners. It's a heuristic so it won't always produce correct results, but, IMO, it's better than nothing. --- ednc.el | 1 + 1 file changed, 1 insertion(+) diff --git a/ednc.el b/ednc.el index cc07c32..0ffa44e 100644 --- a/ednc.el +++ b/ednc.el @@ -314,6 +314,7 @@ This function modifies the notification's hints." (when image (setf (image-property image :max-height) '(1.0 . ch) (image-property image :scale) 1.0 + (image-property image :mask) 'heuristic (image-property image :ascent) 'center) (push (cons 'icon (propertize " " 'display image)) (ednc-notification-amendments new))))))