-
-
Notifications
You must be signed in to change notification settings - Fork 274
/
Copy pathsymbols.py
90 lines (72 loc) · 3.92 KB
/
symbols.py
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
"""
Terminal characters used to mark particular elements of the user interface
"""
# Unless otherwise noted, all symbols are in:
# - Basic Multilingual Plane (BMP)
# - Unicode v1.1
# Suffix comments indicate: unicode name, codepoint (unicode block, version if not v1.1)
INVALID_MARKER = "✗" # BALLOT X, U+2717 (Dingbats)
ALL_MESSAGES_MARKER = "≡" # IDENTICAL TO, U+2261 (Mathematical operators)
MENTIONED_MESSAGES_MARKER = "@"
STARRED_MESSAGES_MARKER = "*"
# Used in View buttons, and short form of DMs (not for streams)
DIRECT_MESSAGE_MARKER = "§" # SECTION SIGN, U+00A7 (Latin-1 supplement)
STREAM_MESSAGE_MARKER = ">"
STREAM_MARKER_PRIVATE = "P"
STREAM_MARKER_PUBLIC = "#"
STREAM_MARKER_WEB_PUBLIC = "⊚" # CIRCLED RING OPERATOR, U+229A (Mathematical operators)
STREAM_TOPIC_SEPARATOR = "▶" # BLACK RIGHT-POINTING TRIANGLE, U+25B6 (Geometric shapes)
# Range of block options for consideration: '█', '▓', '▒', '░'
# FULL BLOCK U+2588, DARK SHADE U+2593, MEDIUM SHADE U+2592, LIGHT SHADE U+2591
# Separator between messages and 'EDITED'
MESSAGE_CONTENT_MARKER = "▒" # MEDIUM SHADE, U+2592 (Block elements)
QUOTED_TEXT_MARKER = "░" # LIGHT SHADE, U+2591 (Block elements)
# Extends from end of recipient details (above messages where recipients differ above)
MESSAGE_HEADER_DIVIDER = "━" # BOX DRAWINGS HEAVY HORIZONTAL, U+2501 (Box drawing)
# NOTE: CHECK_MARK is not used for resolved topics (that is an API detail)
CHECK_MARK = "✓" # CHECK MARK, U+2713 (Dingbats)
APPLICATION_TITLE_BAR_LINE = "═" # BOX DRAWINGS DOUBLE HORIZONTAL, U+2550 (Box drawing)
PINNED_STREAMS_DIVIDER = "-" # HYPHEN-MINUS, U+002D (Basic latin)
COLUMN_TITLE_BAR_LINE = "━" # BOX DRAWINGS HEAVY HORIZONTAL, U+2501 (Box drawing)
COLUMN_DIVIDER_LINE = "│" # BOX DRAWINGS LIGHT VERTICAL, U+2502 (Box drawing)
SECTION_DIVIDER_LINE = "─" # BOX DRAWINGS LIGHT HORIZONTAL, U+2500 (Box drawing)
# NOTE: The '⏱' emoji needs an extra space while rendering. Otherwise, it
# appears to overlap its subsequent text.
# Other tested options are: '⧗' and '⧖'.
# TODO: Try 25F7, WHITE CIRCLE WITH UPPER RIGHT QUADRANT?
TIME_MENTION_MARKER = "⏱ " # STOPWATCH, U+23F1 (Misc Technical, Unicode 6.0)
MUTE_MARKER = "M"
STATUS_ACTIVE = "●" # BLACK CIRCLE, U+25CF (Geometric shapes)
STATUS_IDLE = "◒" # CIRCLE WITH LOWER HALF BLACK, U+25D2 (Geometric shapes)
STATUS_OFFLINE = "○" # WHITE CIRCLE, U+25CB (Geometric shapes)
STATUS_INACTIVE = "•" # BULLET, U+2022 (General punctuation)
BOT_MARKER = "♟" # BLACK CHESS PAWN, U+265F (Misc symbols)
# Unicode 3.2:
AUTOHIDE_TAB_LEFT_ARROW = "❰" # HEAVY LEFT-POINTING ANGLE BRACKET ORNAMENT, U+2770
AUTOHIDE_TAB_RIGHT_ARROW = "❱" # HEAVY RIGHT-POINTING ANGLE BRACKET ORNAMENT, U+2771
# All in Block elements:
POPUP_TOP_LINE = "▄" # LOWER HALF BLOCK, U+2584
POPUP_CONTENT_BORDER = dict(
tlcorner="▛", # QUADRANT UPPER LEFT AND UPPER RIGHT AND LOWER LEFT, U+259B (v3.2)
tline="▀", # UPPER HALF BLOCK, U+2580
trcorner="▜", # QUADRANT UPPER LEFT AND UPPER RIGHT AND LOWER RIGHT, U+259C (v3.2)
rline="▐", # RIGHT HALF BLOCK, U+2590
lline="▌", # LEFT HALF BLOCK, U+258C
blcorner="▙", # QUADRANT UPPER LEFT AND LOWER LEFT AND LOWER RIGHT, U+2599 (v3.2)
bline="▄", # LOWER HALF BLOCK, U+2584
brcorner="▟", # QUADRANT UPPER RIGHT AND LOWER LEFT AND LOWER RIGHT, U+259F (v3.2)
)
COMPOSE_HEADER_TOP = "━" # BOX DRAWINGS HEAVY HORIZONTAL, U+2501 (Box drawing)
COMPOSE_HEADER_BOTTOM = "─" # BOX DRAWINGS LIGHT HORIZONTAL, U+2500 (Box drawing)
_MESSAGE_RECIPIENTS_TOP = "─" # BOX DRAWINGS LIGHT HORIZONTAL, U+2500 (Box drawing)
_MESSAGE_RECIPIENTS_BOTTOM = _MESSAGE_RECIPIENTS_TOP
MESSAGE_RECIPIENTS_BORDER = dict(
tline=_MESSAGE_RECIPIENTS_TOP,
lline="",
trcorner=_MESSAGE_RECIPIENTS_TOP,
tlcorner=_MESSAGE_RECIPIENTS_TOP,
blcorner=_MESSAGE_RECIPIENTS_BOTTOM,
rline="",
bline=_MESSAGE_RECIPIENTS_BOTTOM,
brcorner=_MESSAGE_RECIPIENTS_BOTTOM,
)