Skip to main content

Module style

Module style 

Source
Expand description

Shared styling types for tui-dispatch-components

All component styles follow a standard pattern with these common fields:

  • border: Option<BorderStyle> - optional border configuration
  • padding: Padding - inner padding
  • bg: Option<Color> - background color

Use the ComponentStyle trait to access these in generic code.

Structs§

BaseStyle
Shared base styling configuration for all components.
BorderStyle
Border styling configuration
Borders
Bitflags that can be composed to set the visible borders essentially on the block widget.
Modifier
Modifier changes the way a piece of text is displayed.
Padding
Padding configuration for components
ScrollbarStyle
Scrollbar styling configuration
SelectionStyle
Selection styling for list components
Style
Style lets you control the main characteristics of the displayed elements.

Enums§

Color
ANSI Color

Traits§

ComponentStyle
Trait for component styles that embed a shared BaseStyle.

Functions§

highlight_substring
Highlight substring matches in text (case-insensitive)