mirror of
https://github.com/protesilaos/modus-themes.git
synced 2026-09-10 07:16:30 -04:00
Use a higher luminance value for modus-themes-generate-gradient
This commit is contained in:
parent
cd01e5ead6
commit
6dcd369037
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue