Skip to main content

Crate clankerdiff_theme

Crate clankerdiff_theme 

Source
Expand description

Renderer-neutral colors, semantic diff palettes, and syntax themes.

Structs§

ControlState
Complete semantic state for an action control.
DiffPalette
Colors used by diff renderers.
DiffTheme
A capture-based syntax theme plus semantic colors for the diff UI.
Fingerprint
FontStyle
Text modifiers returned by the syntax engine.
HighlightSpan
A highlighted, UTF-8-safe byte range into the supplied source.
MarkdownPalette
Semantic Markdown roles used by renderer adapters.
ReviewTheme
Aggregate theme shared by terminal and desktop adapters.
Rgba
An sRGB color with an explicit alpha channel.
SemanticStyle
Renderer-neutral visual result for one semantic component state.
SyntaxStyle
Style assigned to a Tree-sitter capture name.
SyntaxThemeBuilder
Builder for syntax themes without exposing the capture map representation.
ThemeDescriptor
Summary metadata for a theme offered by the built-in catalog.
ToneColors
Foreground and background colors resolved for one DiffTone.
UiPalette
Renderer-neutral application colors derived from a diff palette.

Enums§

ButtonVariant
Semantic intent shared by renderer-native action controls.
ControlSize
Semantic size shared by renderer-native controls.
DiffTone
Semantic tint for a diff cell.
FingerprintError
Errors produced while decoding a hexadecimal fingerprint.
InteractionState
Interaction state shared by renderer-native controls.
ModalSize
Cross-renderer modal size category.
NoticeTone
Semantic tone for notices and status messages.
SelectionState
Semantic state for selectable content.
ThemeError
Errors produced while loading theme JSON.
ThemeId
Stable identifiers for embedded and host-provided themes.

Constants§

SCRIM_ALPHA
Alpha applied to the canvas color when it backs a modal scrim.

Type Aliases§

SyntaxTheme
A syntax-only theme view. This alias keeps the capture API compact while allowing callers to depend on the syntax boundary rather than the diff UI.