pudb/examples/theme.py
2024-07-11 09:39:12 -05:00

28 lines
1017 B
Python

# Supported 16 color values:
# 'h0' (color number 0) through 'h15' (color number 15)
# or
# 'default' (use the terminal's default foreground),
# 'black', 'dark red', 'dark green', 'brown', 'dark blue',
# 'dark magenta', 'dark cyan', 'light gray', 'dark gray',
# 'light red', 'light green', 'yellow', 'light blue',
# 'light magenta', 'light cyan', 'white'
#
# Supported 256 color values:
# 'h0' (color number 0) through 'h255' (color number 255)
#
# 256 color chart: http://en.wikipedia.org/wiki/File:Xterm_color_chart.png
#
# "setting_name": (foreground_color, background_color),
# See pudb/theme.py
# (https://github.com/inducer/pudb/blob/main/pudb/theme.py) to see what keys
# there are.
# Note, be sure to test your theme in both curses and raw mode (see the bottom
# of the preferences window). Curses mode will be used with screen or tmux.
palette.update({ # noqa: F821
"source": (add_setting("black", "underline"), "dark green"), # noqa: F821
"comment": ("h250", "default")
})