From 8b3a07de8bd3d826cc2364360bd20817cea82579 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Jun 2026 08:30:31 -0500 Subject: 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. --- themes/dupre-palette.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/dupre-palette.el') diff --git a/themes/dupre-palette.el b/themes/dupre-palette.el index 3901ef82..d6715a78 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.") -- cgit v1.2.3