rs_rich.style
Generated from the type stubs by scripts/gen_python_api.py; do not edit.
rich.style: Style and StyleStack.
Style
underline
property
underline: Optional[bool]
underline2
property
underline2: Optional[bool]
transparent_background
property
transparent_background: bool
background_style
property
from_color
classmethod
from_color(color: Optional[Color] = None, bgcolor: Optional[Color] = None) -> Style
from_meta(meta: Optional[Dict[str, Any]]) -> Style
on
classmethod
on(meta: Optional[Dict[str, Any]] = None, **handlers: Any) -> Style
parse
classmethod
parse(style_definition: str) -> Style
normalize
classmethod
normalize(style: str) -> str
pick_first
classmethod
pick_first(*values: Optional[StyleType]) -> StyleType
combine
classmethod
combine(styles: Iterable[Style]) -> Style
chain
classmethod
chain(*styles: Style) -> Style
clear_meta_and_links() -> Style
update_link
update_link(link: Optional[str] = None) -> Style
get_html_style
get_html_style(theme: Optional[TerminalTheme] = None) -> str
render
render(text: str = '', *, color_system: Optional[ColorSystem] = ..., legacy_windows: bool = False) -> str
test
test(text: Optional[str] = None) -> None
StyleStack
push
push(style: Style) -> None