modern_urwid.style.registry
Handles storing styling rules
Classes
|
Registry for styling rules |
- class modern_urwid.style.registry.StyleRegistry(selectors: list[tuple] = [], pseudos: dict = {})
Bases:
objectRegistry for styling rules
- Parameters:
- get(element: ElementWrapper, default: dict[str, str] = {'background': '', 'background-adv': '', 'color': '', 'color-adv': '', 'monochrome': ''}) tuple[dict[str, str], str, str | None]
Get the style properties and hashes for an element
- Parameters:
- Returns:
A tuple containing the style properties, the normal style hash, and the focus style hash (if applicable)
- Return type: