Skip to main content

Module style

Module style 

Source
Expand description

Unified style bridging between anstyle and ratatui.

Converts anstyle::Style and InlineTextStyle to ratatui::style::Style, using the correct color mapping from crate::color.

Functionsยง

anstyle_to_ratatui_style
Convert an anstyle::Style directly to a ratatui::style::Style.
bg_style
Create a ratatui::Style with a background color.
colored_with_effects
Create a ratatui::Style with foreground color and effects.
effects_to_modifiers
Convert anstyle::Effects to ratatui::style::Modifier.
fg_bg_style
Create a ratatui::Style with foreground and background colors.
fg_style
Create a ratatui::Style with a foreground color.
inline_text_style_to_ratatui
Convert an InlineTextStyle to a ratatui::style::Style.
with_effects
Create a ratatui::Style with effects/modifiers.