@@ -86,13 +86,13 @@ Class names
86
86
Like we do for web design, it is not a good habit to specify all styling
87
87
inline. Instead, we can attach class names to UI controls and have a style
88
88
sheet that refers to these class names. The
89
- :class: `~prompt_toolkit.style .Style ` can be passed as an argument to the
89
+ :class: `~prompt_toolkit.styles .Style ` can be passed as an argument to the
90
90
:class: `~prompt_toolkit.application.Application `.
91
91
92
92
.. code :: python
93
93
94
94
from prompt_toolkit.layout import VSplit, Window
95
- from prompt_toolkit.style import Style
95
+ from prompt_toolkit.styles import Style
96
96
97
97
layout = VSplit([
98
98
Window(BufferControl(... ), style = ' class:left' ),
@@ -209,7 +209,7 @@ their ordering. An ``OrderedDict`` works as well.
209
209
210
210
.. code :: python
211
211
212
- from prompt_toolkit.style import Style
212
+ from prompt_toolkit.styles import Style
213
213
214
214
style = Style.from_dict({
215
215
' header body left.text' : ' underline' ,
@@ -234,7 +234,7 @@ style can however be loaded and used as follows:
234
234
Merging styles together
235
235
-----------------------
236
236
237
- Multiple :class: `~prompt_toolkit.style .Style ` objects can be merged together as
237
+ Multiple :class: `~prompt_toolkit.styles .Style ` objects can be merged together as
238
238
follows:
239
239
240
240
.. code :: python
@@ -309,7 +309,7 @@ minimum brightness to improve rendering on terminals with a dark background.
309
309
310
310
.. code :: python
311
311
312
- from prompt_toolkit.style import AdjustBrightnessStyleTransformation
312
+ from prompt_toolkit.styles import AdjustBrightnessStyleTransformation
313
313
314
314
app = Application(
315
315
style_transformation = AdjustBrightnessStyleTransformation(
0 commit comments