Expand description
Unified diff styles for TUI rendering
Re-exports diff theme from vtcode-commons and provides ratatui-specific style helpers for diff rendering.
Structs§
- Diff
Color Palette - Diff color palette for consistent git diff styling Uses standard ANSI colors without bold for accessibility and consistency.
- Diff
Render Style Context - Snapshot of diff styling inputs that can be reused while rendering.
Enums§
- Diff
Color Level - Terminal color capability level for palette selection.
- Diff
Line Type - Diff line type for style selection.
- Diff
Theme - Terminal background theme for diff rendering.
Functions§
- content_
background - current_
diff_ render_ style_ context - Resolve the current terminal and syntax-theme styling into one context.
- diff_
add_ bg - Get background color for addition lines based on theme and color level.
- diff_
del_ bg - Get background color for deletion lines based on theme and color level.
- 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_ light - Get gutter foreground color for light theme (dark theme uses dimmed default).
- style_
content - Content style for plain (non-syntax-highlighted) diff lines.
- style_
gutter - Gutter (line number) style.
- style_
line_ bg - Full-width line background style. Context lines use terminal default.
- style_
sign - Sign character (
+/-) style. Uses standard ANSI red/green without bold for consistency.