8000 Doc: fix `styles` namespace · mxr/python-prompt-toolkit@b1c212c · GitHub
[go: up one dir, main page]

Skip to content

Commit b1c212c

Browse files
NicolaiSoeborgjonathanslenders
authored andcommitted
Doc: fix styles namespace
1 parent d8f9e27 commit b1c212c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/pages/advanced_topics/styling.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ Class names
8686
Like we do for web design, it is not a good habit to specify all styling
8787
inline. Instead, we can attach class names to UI controls and have a style
8888
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
9090
:class:`~prompt_toolkit.application.Application`.
9191

9292
.. code:: python
9393
9494
from prompt_toolkit.layout import VSplit, Window
95-
from prompt_toolkit.style import Style
95+
from prompt_toolkit.styles import Style
9696
9797
layout = VSplit([
9898
Window(BufferControl(...), style='class:left'),
@@ -209,7 +209,7 @@ their ordering. An ``OrderedDict`` works as well.
209209

210210
.. code:: python
211211
212-
from prompt_toolkit.style import Style
212+
from prompt_toolkit.styles import Style
213213
214214
style = Style.from_dict({
215215
'header body left.text': 'underline',
@@ -234,7 +234,7 @@ style can however be loaded and used as follows:
234234
Merging styles together
235235
-----------------------
236236

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
238238
follows:
239239

240240
.. code:: python
@@ -309,7 +309,7 @@ minimum brightness to improve rendering on terminals with a dark background.
309309

310310
.. code:: python
311311
312-
from prompt_toolkit.style import AdjustBrightnessStyleTransformation
312+
from prompt_toolkit.styles import AdjustBrightnessStyleTransformation
313313
314314
app = Application(
315315
style_transformation=AdjustBrightnessStyleTransformation(

0 commit comments

Comments
 (0)
0