You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.5 KiB
52 lines
1.5 KiB
"""
|
|
Styling for prompt_toolkit applications.
|
|
"""
|
|
from __future__ import unicode_literals, absolute_import
|
|
|
|
from .base import Attrs, DEFAULT_ATTRS, ANSI_COLOR_NAMES, BaseStyle, DummyStyle, DynamicStyle
|
|
from .defaults import default_ui_style, default_pygments_style
|
|
from .style import Style, Priority, merge_styles, parse_color
|
|
from .pygments import style_from_pygments_cls, style_from_pygments_dict, pygments_token_to_classname
|
|
from .named_colors import NAMED_COLORS
|
|
from .style_transformation import StyleTransformation, SwapLightAndDarkStyleTransformation, ReverseStyleTransformation, DummyStyleTransformation, ConditionalStyleTransformation, SetDefaultColorStyleTransformation, AdjustBrightnessStyleTransformation, merge_style_transformations, DynamicStyleTransformation
|
|
|
|
|
|
__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',
|
|
]
|