Skip to content

Commit 61e6f91

Browse files
committed
Changed default table header and border color.
Removed unused EXCEPTION_TYPE style.
1 parent ce0ed32 commit 61e6f91

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cmd2/styles.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ class Cmd2Style(StrEnum):
5151

5252
COMMAND_LINE = "cmd2.example" # Command line examples in help text
5353
ERROR = "cmd2.error" # Error text (used by perror())
54-
EXCEPTION_TYPE = "cmd2.exception.type" # Used by pexcept to mark an exception type
5554
HELP_HEADER = "cmd2.help.header" # Help table header text
5655
HELP_LEADER = "cmd2.help.leader" # Text right before the help tables are listed
5756
SUCCESS = "cmd2.success" # Success text (used by psuccess())
@@ -63,10 +62,9 @@ class Cmd2Style(StrEnum):
6362
DEFAULT_CMD2_STYLES: dict[str, StyleType] = {
6463
Cmd2Style.COMMAND_LINE: Style(color=Color.CYAN, bold=True),
6564
Cmd2Style.ERROR: Style(color=Color.BRIGHT_RED),
66-
Cmd2Style.EXCEPTION_TYPE: Style(color=Color.DARK_ORANGE, bold=True),
67-
Cmd2Style.HELP_HEADER: Style(color=Color.BRIGHT_GREEN, bold=True),
65+
Cmd2Style.HELP_HEADER: Style(color=Color.DARK_ORANGE),
6866
Cmd2Style.HELP_LEADER: Style(color=Color.CYAN, bold=True),
6967
Cmd2Style.SUCCESS: Style(color=Color.GREEN),
70-
Cmd2Style.TABLE_BORDER: Style(color=Color.BRIGHT_GREEN),
68+
Cmd2Style.TABLE_BORDER: Style(color=Color.DARK_ORANGE),
7169
Cmd2Style.WARNING: Style(color=Color.BRIGHT_YELLOW),
7270
}

0 commit comments

Comments
 (0)