Expand description
Diff theme configuration and color palettes
Uses subtle red/green tints for diff line backgrounds.
Enums§
- Diff
Color Level - Terminal color capability level for palette selection.
- Diff
Theme - Terminal background theme for diff rendering.
Functions§
- diff_
add_ bg - Get background color for addition lines based on theme and color level.
- diff_
add_ fg - Foreground color for an addition marker or fallback body.
- diff_
add_ word_ bg - Stronger addition-chip background for word-level (intra-line) highlights.
- diff_
del_ bg - Get background color for deletion lines based on theme and color level.
- diff_
del_ fg - Foreground color for a deletion marker or fallback body.
- diff_
del_ word_ bg - Stronger deletion-chip background for word-level (intra-line) highlights.
- diff_
gutter_ bg_ add_ light - Get gutter background color for addition lines in light theme.
- diff_
gutter_ bg_ del_ light - Get gutter background color for deletion lines in light theme.
- diff_
gutter_ fg - Foreground color for line-number gutters and separators.
- diff_
gutter_ fg_ light - Legacy light-theme gutter foreground retained for compatibility.
- diff_
hunk_ bg - Get background color for hunk header (
@@ -old +new @@) lines.