summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2023-01-03 23:38:53 -0500
committerKyle Meyer <kyle@kyleam.com>2023-01-03 23:39:54 -0500
commitb58049b988d59402295746d364bb9bb4f957e4c0 (patch)
tree9179b45411da5e13763ae293f80e216f48a627e7
parent7f9872ea08277dd0fa51866a492312b947b7f638 (diff)
downloademacs.d-b58049b988d59402295746d364bb9bb4f957e4c0.tar.gz
theme: Use modus-themes-with-colors
modus-themes-color is deprecated in v4.0.0.
-rw-r--r--init.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/init.el b/init.el
index 080bca1..7126994 100644
--- a/init.el
+++ b/init.el
@@ -63,11 +63,12 @@
(add-to-list 'modus-themes-org-agenda '(header-block . (no-scale)))
(defun km/modus-themes-set-custom-faces ()
- (when (featurep 'git-annex)
- (set-face-attribute 'git-annex-dired-annexed-available nil
- :foreground (modus-themes-color 'green))
- (set-face-attribute 'git-annex-dired-annexed-unavailable nil
- :foreground (modus-themes-color 'red))))
+ (modus-themes-with-colors
+ (when (featurep 'git-annex)
+ (set-face-attribute 'git-annex-dired-annexed-available nil
+ :foreground green)
+ (set-face-attribute 'git-annex-dired-annexed-unavailable nil
+ :foreground red))))
(add-hook 'modus-themes-after-load-theme-hook
#'km/modus-themes-set-custom-faces)