We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 447ee75 commit 93d99d9Copy full SHA for 93d99d9
1 file changed
cmd2/theme.py
@@ -151,9 +151,10 @@ def _create_default_theme() -> Theme:
151
152
153
def register_pt_mapping(style_name: str, pt_ui_names: str | list[str]) -> None:
154
- """Map a style name to one or more prompt-toolkit UI components.
+ """Map a Rich theme style name to one or more prompt-toolkit UI components.
155
156
- This allows plugins and applications to define their own themeable UI elements.
+ This enables styling of prompt-toolkit's internal elements (such as the
157
+ completion menu ) using styles in the application's Rich theme.
158
159
:param style_name: The style name used in the Rich theme.
160
:param pt_ui_names: One or more prompt-toolkit UI component names (e.g., 'completion-menu').
0 commit comments