1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
"""
Styling for prompt_toolkit applications.
"""
from __future__ import annotations
from .base import (
ANSI_COLOR_NAMES,
DEFAULT_ATTRS,
Attrs,
BaseStyle,
DummyStyle,
DynamicStyle,
)
from .defaults import default_pygments_style, default_ui_style
from .named_colors import NAMED_COLORS
from .pygments import (
pygments_token_to_classname,
style_from_pygments_cls,
style_from_pygments_dict,
)
from .style import Priority, Style, merge_styles, parse_color
from .style_transformation import (
AdjustBrightnessStyleTransformation,
ConditionalStyleTransformation,
DummyStyleTransformation,
DynamicStyleTransformation,
ReverseStyleTransformation,
SetDefaultColorStyleTransformation,
StyleTransformation,
SwapLightAndDarkStyleTransformation,
merge_style_transformations,
)
__all__ = [
# Base.
"Attrs",
"DEFAULT_ATTRS",
"ANSI_COLOR_NAMES",
"BaseStyle",
"DummyStyle",
"DynamicStyle",
# Defaults.
"default_ui_style",
"default_pygments_style",
# Style.
"Style",
"Priority",
"merge_styles",
"parse_color",
# Style transformation.
"StyleTransformation",
"SwapLightAndDarkStyleTransformation",
"ReverseStyleTransformation",
"SetDefaultColorStyleTransformation",
"AdjustBrightnessStyleTransformation",
"DummyStyleTransformation",
"ConditionalStyleTransformation",
"DynamicStyleTransformation",
"merge_style_transformations",
# Pygments.
"style_from_pygments_cls",
"style_from_pygments_dict",
"pygments_token_to_classname",
# Named colors.
"NAMED_COLORS",
]
|