Skip to content

Commit 9fe0693

Browse files
committed
complete table for major formatting
1 parent 7d265a6 commit 9fe0693

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

examples/util/color_palette.py

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,25 @@ def set_range(app, custom_range):
2828
app.print("A_BOLD", x=44, y=1, panel="layout.1")
2929
app.print("A_ITALIC", x=66, y=1, panel="layout.1")
3030
app.print("A_DIM", x=1, y=20, panel="layout.1")
31+
app.print("A_UNDERLINE", x=22, y=20, panel="layout.1")
32+
app.print("A_BLINK", x=44, y=20, panel="layout.1")
33+
app.print("A_INVIS", x=66, y=20, panel="layout.1")
3134
for j in range(custom_range[0], custom_range[1]):
3235
app.print(f"{color_names[j]}", x=1, y=app.cursor_y + 2, color=color_names[j], panel="layout.1")
33-
app.print(f"{color_names[j]}", x=22, y=app.cursor_y + 2, color=color_names[j], panel="layout.1", A_REVERSE=True)
34-
app.print(f"{color_names[j]}", x=44, y=app.cursor_y + 2, color=color_names[j], panel="layout.1", A_BOLD=True)
35-
app.print(f"{color_names[j]}", x=66, y=app.cursor_y + 2, color=color_names[j], panel="layout.1", A_ITALIC=True)
36-
app.print(f"{color_names[j]}", x=1, y=app.cursor_y + 21, color=color_names[j], panel="layout.1", A_DIM=True)
36+
app.print(f"{color_names[j]}", x=22, y=app.cursor_y + 2, color=color_names[j], panel="layout.1",
37+
A_REVERSE=True)
38+
app.print(f"{color_names[j]}", x=44, y=app.cursor_y + 2, color=color_names[j], panel="layout.1",
39+
A_BOLD=True)
40+
app.print(f"{color_names[j]}", x=66, y=app.cursor_y + 2, color=color_names[j], panel="layout.1",
41+
A_ITALIC=True)
42+
app.print(f"{color_names[j]}", x=1, y=app.cursor_y + 21, color=color_names[j], panel="layout.1",
43+
A_DIM=True)
44+
app.print(f"{color_names[j]}", x=22, y=app.cursor_y + 21, color=color_names[j], panel="layout.1",
45+
A_UNDERLINE=True)
46+
app.print(f"{color_names[j]}", x=44, y=app.cursor_y + 21, color=color_names[j], panel="layout.1",
47+
A_BLINK=True)
48+
app.print(f"{color_names[j]}", x=66, y=app.cursor_y + 21, color=color_names[j], panel="layout.1",
49+
A_INVIS=True)
3750
app.cursor_y += 1
3851

3952

@@ -126,21 +139,6 @@ def dashport(stdscr):
126139
app.selected_background = "default"
127140
app.add_control("KEY_DOWN", next_background)
128141
app.add_control("KEY_UP", prev_background)
129-
app.add_control("A", default_range, case_sensitive=False)
130-
app.add_control("B", white_range, case_sensitive=False)
131-
app.add_control("C", black_range, case_sensitive=False)
132-
app.add_control("D", silver_range, case_sensitive=False)
133-
app.add_control("E", grey_range, case_sensitive=False)
134-
app.add_control("F", red_range, case_sensitive=False)
135-
app.add_control("G", lime_range, case_sensitive=False)
136-
app.add_control("H", yellow_range, case_sensitive=False)
137-
app.add_control("I", blue_range, case_sensitive=False)
138-
app.add_control("J", fuchsia_range, case_sensitive=False)
139-
app.add_control("K", aqua_range, case_sensitive=False)
140-
app.add_control("L", maroon_range, case_sensitive=False)
141-
app.add_control("M", green_range, case_sensitive=False)
142-
app.add_control("N", navy_range, case_sensitive=False)
143-
app.add_control("O", purple_range, case_sensitive=False)
144142
while True:
145143
globals()["{}_range".format(app.selected_background)](app)
146144
app.refresh()

0 commit comments

Comments
 (0)