-
-
Notifications
You must be signed in to change notification settings - Fork 274
/
Copy pathgruvbox_dark.py
102 lines (94 loc) · 5.47 KB
/
gruvbox_dark.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
91
92
93
94
95
96
97
98
99
100
101
102
"""
GRUVBOX DARK
------------
For syntax highlighting, this theme uses the solarized dark styles
from pygments. This could be updated to a gruvbox style when the style
is released.
For further details on themefiles look at the theme contribution guide
"""
from pygments.styles.solarized import SolarizedDarkStyle
from zulipterminal.config.color import Background
from zulipterminal.themes.colors_gruvbox import DefaultBoldColor as Color
# fmt: off
STYLES = {
# style_name : foreground background
None : (Color.LIGHT2, Background.COLOR),
'selected' : (Color.DARK0_HARD, Color.NEUTRAL_BLUE),
'msg_selected' : (Color.DARK0_HARD, Color.NEUTRAL_BLUE),
'header' : (Color.NEUTRAL_BLUE, Color.BRIGHT_BLUE),
'general_narrow' : (Color.DARK0_HARD, Color.BRIGHT_BLUE),
'general_bar' : (Color.LIGHT2, Background.COLOR),
'msg_sender' : (Color.NEUTRAL_YELLOW__BOLD, Background.COLOR),
'unread' : (Color.NEUTRAL_PURPLE, Background.COLOR),
'user_active' : (Color.BRIGHT_GREEN, Background.COLOR),
'user_idle' : (Color.NEUTRAL_YELLOW, Background.COLOR),
'user_offline' : (Color.LIGHT2, Background.COLOR),
'user_inactive' : (Color.LIGHT2, Background.COLOR),
'user_bot' : (Color.LIGHT2, Background.COLOR),
'title' : (Color.LIGHT2__BOLD, Background.COLOR),
'column_title' : (Color.LIGHT2__BOLD, Background.COLOR),
'time' : (Color.BRIGHT_BLUE, Background.COLOR),
'bar' : (Color.LIGHT2, Color.GRAY_244),
'msg_emoji' : (Color.NEUTRAL_PURPLE, Background.COLOR),
'reaction' : (Color.NEUTRAL_PURPLE__BOLD, Background.COLOR),
'reaction_mine' : (Color.DARK0_HARD, Color.NEUTRAL_PURPLE),
'msg_heading' : (Color.DARK0_HARD__BOLD, Color.BRIGHT_GREEN),
'msg_math' : (Color.DARK0_HARD, Color.GRAY_244),
'msg_mention' : (Color.BRIGHT_RED__BOLD, Background.COLOR),
'msg_link' : (Color.BRIGHT_BLUE, Background.COLOR),
'msg_link_index' : (Color.BRIGHT_BLUE__BOLD, Background.COLOR),
'msg_quote' : (Color.NEUTRAL_YELLOW, Background.COLOR),
'msg_bold' : (Color.LIGHT2__BOLD, Background.COLOR),
'msg_time' : (Color.DARK0_HARD, Color.LIGHT2),
'footer' : (Color.DARK0_HARD, Color.LIGHT4),
'footer_contrast' : (Color.LIGHT2, Background.COLOR),
'starred' : (Color.BRIGHT_RED__BOLD, Background.COLOR),
'unread_count' : (Color.NEUTRAL_YELLOW, Background.COLOR),
'starred_count' : (Color.LIGHT4, Background.COLOR),
'table_head' : (Color.LIGHT2__BOLD, Background.COLOR),
'filter_results' : (Color.DARK0_HARD, Color.BRIGHT_GREEN),
'edit_topic' : (Color.DARK0_HARD, Color.GRAY_244),
'edit_tag' : (Color.DARK0_HARD, Color.GRAY_244),
'edit_author' : (Color.NEUTRAL_YELLOW, Background.COLOR),
'edit_time' : (Color.BRIGHT_BLUE, Background.COLOR),
'current_user' : (Color.LIGHT2, Background.COLOR),
'muted' : (Color.BRIGHT_BLUE, Background.COLOR),
'popup_border' : (Color.LIGHT2, Background.COLOR),
'popup_category' : (Color.BRIGHT_BLUE__BOLD, Background.COLOR),
'popup_contrast' : (Color.DARK0_HARD, Color.GRAY_244),
'popup_important' : (Color.BRIGHT_RED__BOLD, Background.COLOR),
'widget_disabled' : (Color.GRAY_244, Background.COLOR),
'area:help' : (Color.DARK0_HARD, Color.BRIGHT_GREEN),
'area:msg' : (Color.DARK0_HARD, Color.NEUTRAL_PURPLE),
'area:stream' : (Color.DARK0_HARD, Color.BRIGHT_BLUE),
'area:topic' : (Color.DARK0_HARD, Color.BRIGHT_BLUE),
'area:error' : (Color.DARK0_HARD, Color.BRIGHT_RED),
'area:user' : (Color.DARK0_HARD, Color.BRIGHT_YELLOW),
'search_error' : (Color.BRIGHT_RED, Background.COLOR),
'task:success' : (Color.DARK0_HARD, Color.BRIGHT_GREEN),
'task:error' : (Color.DARK0_HARD, Color.BRIGHT_RED),
'task:warning' : (Color.DARK0_HARD, Color.NEUTRAL_PURPLE),
'ui_code' : (Color.DARK0_HARD, Color.LIGHT2),
}
META = {
'background': Color.DARK0_HARD,
'pygments': {
'styles' : SolarizedDarkStyle().styles,
'background': 'h236',
'overrides' : {
'c' : '#586e75, italics', # base01
'cp' : '#d33682', # magenta
'cpf' : '#586e75', # base01
'ge' : '#839496, italics', # base0
'gh' : '#839496, bold', # base0
'gu' : '#839496, underline', # base0
'gp' : '#268bd2, bold', # blue
'gs' : '#839496, bold', # base0
'err' : '#dc322f', # red
'n' : '#bdae93', # gruvbox: light4
'p' : '#bdae93', # gruvbox: light4
'w' : '#bdae93', # gruvbox: light4
}
}
}
# fmt: on