Use a higher luminance value for modus-themes-generate-gradient

This commit is contained in:
Protesilaos Stavrou 2025-12-23 07:58:45 +02:00
parent cd01e5ead6
commit 6dcd369037
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -7608,6 +7608,7 @@ inclusive."
(defun modus-themes-generate-gradient (color percent)
"Adjust value of COLOR by PERCENT."
(pcase-let* ((`(,r ,g ,b) (color-name-to-rgb color))
(color-luminance-dark-limit 0.5)
(gradient (funcall (if (color-dark-p (list r g b))
#'color-lighten-name
#'color-darken-name)