Return a mapping from style names to their classes.
()
| 9 | |
| 10 | |
| 11 | def get_all_code_styles() -> dict[str, BaseStyle]: |
| 12 | """ |
| 13 | Return a mapping from style names to their classes. |
| 14 | """ |
| 15 | result: dict[str, BaseStyle] = { |
| 16 | name: style_from_pygments_cls(get_style_by_name(name)) |
| 17 | for name in get_all_styles() |
| 18 | } |
| 19 | result["win32"] = Style.from_dict(win32_code_style) |
| 20 | result["default-ansi"] = Style.from_dict(default_ansi_code_style) |
| 21 | return result |
| 22 | |
| 23 | |
| 24 | def get_all_ui_styles() -> dict[str, BaseStyle]: |