Skip to main content

style_content

Function style_content 

Source
pub fn style_content(
    kind: DiffLineType,
    theme: DiffTheme,
    level: DiffColorLevel,
) -> Style
Expand description

Content style for plain (non-syntax-highlighted) diff lines.

Dark + ANSI16: black fg on colored bg for contrast. Light: bg only, no fg override. Dark + TrueColor/256: colored fg + tinted bg.