#!/usr/bin/env python3 import _theme as theme print( """\ \ """ ) def print_color(key_name, color): r, g, b = [float(int(color[2 * i + 1:2 * i + 3], 16)) / 255 for i in range(3)] print( """\ {} Color Color Space sRGB Red Component {} Green Component {} Blue Component {} \ """.format(key_name, r, g, b) ) print_color("Background", theme.bg) print_color("Foreground", theme.fg) print_color("Bold", theme.fg) print_color("Cursor", theme.cursor_bg) print_color("Cursor Text", theme.cursor_fg) print_color("Selection Color", theme.selection_bg) print_color("Selected Text Color", theme.selection_fg) for index, color in enumerate(theme.ansi_colors[:16]): print_color("Ansi " + str(index), color) print_color("Link", theme.link_color) print("""\ \ """)