aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-07 08:30:31 -0500
committerCraig Jennings <c@cjennings.net>2026-06-07 08:30:31 -0500
commit8c2204a24169d5a9817fc2212a6deed0270c46f8 (patch)
treec155a548e249bb8d0ba6525798175c00da291b87 /themes
parent988a801e3fd922825f2de639e0b8ea19d988823e (diff)
downloaddotemacs-8c2204a24169d5a9817fc2212a6deed0270c46f8.tar.gz
dotemacs-8c2204a24169d5a9817fc2212a6deed0270c46f8.zip
fix(dupre): make diff-changed and diff-refine-changed legible
diff-refine-changed rendered the default foreground (#f0fef0) on the bright-gold yellow-1 (#ffd700) at WCAG contrast 1.35, unreadable wherever the face is a plain background, not inside diff-mode's own foreground overlay. diff-changed was weak too at 2.78. Both now use the default foreground on the dark amber yellow-2 (#875f00), already in dupre's palette, for a contrast of 5.49. diff-refine-changed keeps its bold weight so it stays stronger than diff-changed. A WCAG-contrast test guards both faces from dropping below 4.5.
Diffstat (limited to 'themes')
-rw-r--r--themes/dupre-faces.el4
-rw-r--r--themes/dupre-palette.el2
2 files changed, 3 insertions, 3 deletions
diff --git a/themes/dupre-faces.el b/themes/dupre-faces.el
index 8fad4c626..17daa41c1 100644
--- a/themes/dupre-faces.el
+++ b/themes/dupre-faces.el
@@ -164,10 +164,10 @@
;;;;; Diff mode
`(diff-added ((t (:foreground ,green :background ,green-2))))
`(diff-removed ((t (:foreground ,red :background ,red-3))))
- `(diff-changed ((t (:foreground ,yellow :background ,yellow-2))))
+ `(diff-changed ((t (:foreground ,fg :background ,yellow-2))))
`(diff-refine-added ((t (:foreground ,fg :background ,green-1 :weight bold))))
`(diff-refine-removed ((t (:foreground ,fg :background ,red-2 :weight bold))))
- `(diff-refine-changed ((t (:foreground ,fg :background ,yellow-1 :weight bold))))
+ `(diff-refine-changed ((t (:foreground ,fg :background ,yellow-2 :weight bold))))
`(diff-header ((t (:foreground ,fg :background ,bg+2))))
`(diff-file-header ((t (:foreground ,blue :background ,bg+2 :weight bold))))
`(diff-hunk-header ((t (:foreground ,gray+1 :background ,bg+1))))
diff --git a/themes/dupre-palette.el b/themes/dupre-palette.el
index 3901ef82b..d6715a788 100644
--- a/themes/dupre-palette.el
+++ b/themes/dupre-palette.el
@@ -95,7 +95,7 @@ Each entry is (NAME VALUE) where VALUE is a hex color string.")
(diff-removed-bg red-3)
(diff-removed-fg red)
(diff-changed-bg yellow-2)
- (diff-changed-fg yellow))
+ (diff-changed-fg fg))
"Semantic color mappings for dupre-theme.
Each entry maps a semantic name to a palette color name.")