Skip to main content

Module diff_styles

Module diff_styles 

Source
Expand description

Unified message styles and their logical mappings

Structs§

ColorPalette
Standard color palette with semantic names
DiffColorPalette
Diff color palette for consistent git diff styling

Enums§

DiffColorLevel
Terminal color capability level for palette selection.
DiffLineType
Diff line type for style selection.
DiffTheme
Terminal background theme for diff rendering.

Functions§

add_line_bg
Background color for addition lines.
bold_color
Create a bold colored style from AnsiColor
del_line_bg
Background color for deletion lines.
dimmed_color
Create a dimmed colored style from AnsiColor
render_styled
Render text with a single color and optional effects
style_content
Content style for plain (non-syntax-highlighted) diff lines.
style_from_color_name
Build style from CSS/terminal color name
style_gutter
Gutter (line number) style.
style_line_bg
Full-width line background style. Context lines use terminal default.
style_sign
Sign character (+/-) style.