Get the application-wide theme. Initializes it on the first call.
()
| 311 | |
| 312 | |
| 313 | def get_theme() -> Theme: |
| 314 | """Get the application-wide theme. Initializes it on the first call.""" |
| 315 | global _APP_THEME # noqa: PLW0603 |
| 316 | if _APP_THEME is None: |
| 317 | _APP_THEME = _create_default_theme() |
| 318 | return _APP_THEME |
| 319 | |
| 320 | |
| 321 | def set_theme(styles: Mapping[str, StyleType] | None = None) -> None: |
no test coverage detected
searching dependent graphs…