Module diff_colors

Module diff_colors 

Source
Available on crate feature theme only.
Expand description

Diff colors module for CodeDiff widget theming.

This module provides DiffColors which contains all the colors needed for rendering unified diff views with syntax-highlighted additions, removals, and context lines.

§Color Categories

The diff color scheme includes:

  • Line colors: Colors for added, removed, and context line text
  • Background colors: Background colors for different line types
  • Highlight colors: Emphasized colors for inline changes
  • Line number colors: Colors for the gutter line numbers

§Example

use ratatui::style::Color;
use ratatui_toolkit::services::theme::DiffColors;

let colors = DiffColors::default();
// Use colors.added for added line text color

Structs§

DiffColors
Colors for rendering unified diff views.