Skip to content

Commit 7ea367e

Browse files
committed
Added in a custom self.doc_leader
1 parent 06c2fe1 commit 7ea367e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/rich_theme.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,17 @@ def __init__(self, *args, **kwargs):
1616
super().__init__(*args, **kwargs)
1717
self.intro = "This is a themed application. Try the 'theme_show' command."
1818

19+
# Set text which prints right before all of the help tables are listed.
20+
self.doc_leader = "Welcome to this glorious help ..."
21+
1922
# Create a custom theme
2023
custom_theme = {
2124
Cmd2Style.SUCCESS: Style(color=Color.CYAN),
2225
Cmd2Style.WARNING: Style(color=Color.MAGENTA),
2326
Cmd2Style.ERROR: Style(color=Color.BRIGHT_RED),
2427
Cmd2Style.HELP_HEADER: Style(color=Color.YELLOW),
25-
Cmd2Style.HELP_LEADER: Style(color=Color.PURPLE),
26-
Cmd2Style.TABLE_BORDER: Style(color=Color.BLUE),
28+
Cmd2Style.HELP_LEADER: Style(color=Color.VIOLET),
29+
Cmd2Style.TABLE_BORDER: Style(color=Color.LIGHT_SKY_BLUE1),
2730
"argparse.args": Style(color=Color.AQUAMARINE3, underline=True),
2831
"inspect.attr": Style(color=Color.DARK_GOLDENROD, bold=True),
2932
}

0 commit comments

Comments
 (0)