Use conditional italics for three faces

They will have a slant only if the user option
'modus-themes-italic-constructs' is set to a non-nil value.
This commit is contained in:
Protesilaos Stavrou 2023-01-10 06:11:46 +02:00
parent 4e9c88bdb5
commit b4fabcbb51
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -2739,7 +2739,7 @@ FG and BG are the main colors."
`(marginalia-archive ((,c :foreground ,accent-0)))
`(marginalia-char ((,c :foreground ,accent-2)))
`(marginalia-date ((,c :foreground ,date-common)))
`(marginalia-documentation ((,c :inherit italic :foreground ,docstring)))
`(marginalia-documentation ((,c :inherit modus-themes-slant :foreground ,docstring)))
`(marginalia-file-name (( )))
`(marginalia-file-owner ((,c :inherit shadow)))
`(marginalia-file-priv-dir ((,c :foreground ,accent-0)))
@ -2791,7 +2791,7 @@ FG and BG are the main colors."
`(markdown-table-face ((,c :inherit modus-themes-fixed-pitch :foreground ,prose-table)))
`(markdown-url-face ((,c :foreground ,fg-alt)))
;;;;; markup-faces (`adoc-mode')
`(markup-attribute-face ((,c :inherit (italic markup-meta-face))))
`(markup-attribute-face ((,c :inherit (modus-themes-slant markup-meta-face))))
`(markup-bold-face ((,c :inherit bold)))
`(markup-code-face ((,c :foreground ,prose-code)))
`(markup-comment-face ((,c :inherit font-lock-comment-face)))
@ -2991,7 +2991,7 @@ FG and BG are the main colors."
`(orderless-match-face-3 ((,c :inherit modus-themes-completion-match-3)))
;;;;; org
`(org-agenda-calendar-event ((,c :foreground ,date-event)))
`(org-agenda-calendar-sexp ((,c :inherit (italic org-agenda-calendar-event))))
`(org-agenda-calendar-sexp ((,c :inherit (modus-themes-slant org-agenda-calendar-event))))
`(org-agenda-clocking ((,c :inherit modus-themes-mark-alt)))
`(org-agenda-column-dateline ((,c :background ,bg-inactive)))
`(org-agenda-current-time ((,c :foreground ,date-now)))