Repository navigation
Expand file tree
/
Copy paththeme.py
More file actions
64 lines (63 loc) · 1.72 KB
/
Copy paththeme.py
File metadata and controls
64 lines (63 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
"""Named cell styles and ASCII alternatives used by both terminal backends."""
# Style: foreground, background, bold. The same cell renderer drives QA previews.
PALETTE = {
"base": ("#c8d3e2", "#0c111b", False),
"muted": ("#8b9ab1", "#0c111b", False),
"faint": ("#35445c", "#0c111b", False),
"gold": ("#f2c879", "#0c111b", True),
"green": ("#8fe1bc", "#0c111b", True),
"blue": ("#91c7f5", "#0c111b", True),
"purple": ("#c8adf4", "#0c111b", True),
"white": ("#f2f5fa", "#0c111b", True),
"panel": ("#c8d3e2", "#141e2c", False),
"panel_muted": ("#8b9ab1", "#141e2c", False),
"panel_gold": ("#f2c879", "#141e2c", True),
"panel_green": ("#8fe1bc", "#141e2c", True),
"panel_blue": ("#91c7f5", "#141e2c", True),
"sel": ("#f2f5fa", "#24334a", True),
"sel_gold": ("#f2c879", "#24334a", True),
"sel_green": ("#8fe1bc", "#24334a", True),
"sel_muted": ("#becbde", "#24334a", False),
"danger": ("#ff9d9d", "#0c111b", True),
}
ASCII_MAP = str.maketrans(
{
"╭": "+",
"╮": "+",
"╰": "+",
"╯": "+",
"┌": "+",
"┐": "+",
"└": "+",
"┘": "+",
"─": "-",
"━": "=",
"│": "|",
"┃": "|",
"┬": "+",
"┴": "+",
"├": "+",
"┤": "+",
"┼": "+",
"◆": "*",
"◇": "o",
"●": "*",
"○": "o",
"◈": "*",
"▰": "#",
"▱": "-",
"█": "#",
"░": ".",
"›": ">",
"←": "<",
"→": ">",
"↑": "^",
"↓": "v",
"·": ".",
"…": "~",
"✓": "+",
"“": '"',
"”": '"',
"’": "'",
}
)