-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcustom_theme.py
executable file
·211 lines (193 loc) · 8.77 KB
/
custom_theme.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Nov 18 03:22:21 PM CET 2024
@author hielke
"""
from pudb.themes.utils import add_setting, link
# Based on XCode's midnight theme
# Looks best in a console with green text against black background
# link("current breakpoint", "current frame name")
# link("focused current breakpoint", "focused current frame name")
palette_dict = {
# # {{{ base styles
"background": ("white", "light gray"),
"selectable": ("white", "default"),
"focused selectable": ("white", "dark green"),
"hotkey": (add_setting("black", "underline, italics"), "light gray"),
"highlighted": ("white", "dark green"),
# # }}}
# # {{{ general ui
"input": ("black", "default"),
"focused input": ("light green", "default"),
"warning": (add_setting("white", "bold"), "dark red"),
"dialog title": (add_setting("white", "bold"), "dark blue"),
"group head": (add_setting("dark blue", "bold"), "default"),
"button": (add_setting("white", "bold"), "dark blue"),
"focused button": ("white", "default"),
"focused sidebar": ("black", "light gray"),
"value": (add_setting("yellow", "bold"), "dark blue"),
# # }}}
# # {{{ source view
"source": (add_setting("black", "bold"), "default"),
"focused source": (add_setting("black", "bold"), "dark green"),
"highlighted source": (add_setting("black", "bold"), "light gray"),
"current source": (add_setting("black", "bold"), "light gray"),
"current focused source": (add_setting("black", "bold"), "brown"),
"breakpoint source": (add_setting("black", "bold"), "dark red"),
"current breakpoint source": (add_setting("yellow", "bold"), "dark red"),
"line number": ("black", "default"),
"current line marker": ("dark red", "default"),
"breakpoint marker": ("dark red", "default"),
# # }}}
# # {{{ sidebar
"sidebar one": (add_setting("black", "bold"), "default"),
"sidebar two": ("light blue", "default"),
"sidebar three": ("light cyan", "default"),
# # }}}
# # {{{ variables view
# "variables": "selectable",
# "variable separator": "background",
# "var value": "sidebar one",
# "var label": "sidebar two",
# "focused var value": "focused sidebar one",
# "focused var label": "focused sidebar two",
# "highlighted var label": "highlighted",
# "highlighted var value": "highlighted",
# "focused highlighted var label": "focused var label",
# "focused highlighted var value": "focused var value",
# "return label": "var label",
# "return value": "var value",
# "focused return label": "focused var label",
# "focused return value": "focused var value",
"return label": ("white", "dark blue"),
"return value": ("light gray", "dark cyan"),
"focused return label": ("light gray", "dark blue"),
"variable separator": ("light gray", "default"),
# # }}}
# # {{{ stack
"current frame name": (add_setting("white", "bold"), "default"),
"current frame class": (add_setting("light blue", "bold"), "default"),
"current frame location": (add_setting("light cyan", "bold"), "default"),
"focused current frame name": (add_setting("white", "bold"), "dark green"),
"focused current frame class": (add_setting("white", "bold"), "dark green"),
"focused current frame location": (add_setting("white", "bold"), "dark green"),
# # }}}
# # {{{ breakpoints view
"breakpoint": ("white", "default"),
"disabled breakpoint": ("dark gray", "default"),
"focused disabled breakpoint": ("light gray", "dark blue"),
"current breakpoint": (add_setting("white", "bold"), "default"),
"disabled current breakpoint": (add_setting("dark gray", "bold"), "default"),
"focused current breakpoint": (add_setting("white", "bold"), "dark blue"),
"focused disabled current breakpoint": (
add_setting("light gray", "bold"), "dark blue"),
# # }}}
# # {{{ shell
"command line edit": ("white", "default"),
"command line prompt": (add_setting("default", "bold"), "default"),
"command line input": ("white", "default"),
"command line error": (add_setting("light red", "bold"), "default"),
"command line clear button": (add_setting("white", "bold"), "default"),
"command line focused button": ("white", "dark blue"),
# # }}}
# # {{{ Code syntax
"keyword": ("dark magenta", "default"),
"operator": ("black", "default"),
"pseudo": ("light magenta", "default"),
"function": (add_setting("light blue", "bold"), "default"),
"builtin": ("dark gray", "default"),
"literal": ("dark cyan", "default"),
"string": ("dark red", "default"),
"docstring": ("dark red", "default"),
"backtick": ("black", "default"),
"punctuation": (add_setting("black", "bold"), "default"),
"comment": ("light green", "default"),
"exception": ("dark green", "default"),
# # }}}
}
# palette_dict2 = {
# "background": ("standout",),
# "selectable": (),
# "focused selectable": ("underline",),
# "highlighted": ("bold",),
# "hotkey": ("underline, standout",),
# "background": ("white", "light gray"),
# "selectable": ("white", "white"),
# "focused selectable": ("white", "dark blue"),
# "hotkey": (add_setting("black", "underline, italics"), "light gray"),
# "highlighted": ("white", "dark green"),
# {{{ general ui
# "input": ("light green", "light gray"),
# "focused input": ("light green", "light gray"),
# "warning": (add_setting("white", "bold"), "dark red"),
# "dialog title": (add_setting("white", "bold"), "dark blue"),
# "group head": (add_setting("dark blue", "bold"), "light gray"),
# "button": (add_setting("white", "bold"), "dark blue"),
# "focused button": ("white", "light gray"),
# "focused sidebar": ("black", "light gray"),
# "value": (add_setting("yellow", "bold"), "dark blue"),
# }}}
# {{{ source view
# "source": ("light green", "light gray"),
# "highlighted source": ("white", "dark green"),
# "current source": ("white", "brown"),
# "current focused source": (add_setting("yellow", "bold"), "dark blue"),
# "breakpoint source": (add_setting("yellow", "bold"), "dark red"),
# "current breakpoint source": ("black", "dark red"),
# "line number": ("black", "light gray"),
# "current line marker": ("dark red", "light gray"),
# "breakpoint marker": ("dark red", "light gray"),
# }}}
# {{{ sidebar
# "sidebar two": ("light blue", "light gray"),
# "sidebar three": ("light cyan", "light gray"),
# }}}
# {{{ variables view
# "return label": ("white", "dark blue"),
# "return value": ("light gray", "dark cyan"),
# "focused return label": ("light gray", "dark blue"),
# }}}
# {{{ stack
# "current frame name": (add_setting("white", "bold"), "light gray"),
# "current frame class": (add_setting("light blue", "bold"), "light gray"),
# "current frame location": (add_setting("light cyan", "bold"), "light gray"),
# "focused current frame name": (add_setting("white", "bold"), "dark blue"),
# "focused current frame class": (add_setting("white", "bold"), "dark blue"),
# "focused current frame location": (add_setting("white", "bold"), "dark blue"),
# }}}
# {{{ breakpoints view
# "breakpoint": ("white", "light gray"),
# "disabled breakpoint": ("dark gray", "light gray"),
# "focused disabled breakpoint": ("light gray", "dark blue"),
# "current breakpoint": (add_setting("white", "bold"), "light gray"),
# "disabled current breakpoint": (add_setting("dark gray", "bold"), "light gray"),
# "focused current breakpoint": (add_setting("white", "bold"), "dark blue"),
# "focused disabled current breakpoint": (
# add_setting("light gray", "bold"), "dark blue"),
# }}}
# {{{ shell
# "command line edit": ("white", "light gray"),
# "command line prompt": (add_setting("white", "bold"), "light gray"),
# "command line input": ("white", "light gray"),
# "command line error": (add_setting("light red", "bold"), "light gray"),
# "command line clear button": (add_setting("white", "bold"), "light gray"),
# "command line focused button": ("white", "dark blue"),
# }}}
# {{{ Code syntax
# "keyword": ("dark magenta", "light gray"),
# "operator": ("dark green", "light gray"),
# "pseudo": ("light magenta", "light gray"),
# "function": (add_setting("light blue", "bold"), "light gray"),
# "builtin": ("dark gray", "light gray"),
# "literal": ("dark cyan", "light gray"),
# "string": ("dark red", "light gray"),
# "docstring": ("yellow", "light gray"),
# "backtick": ("dark green", "light gray"),
# "punctuation": ("white", "light gray"),
# "comment": ("white", "light gray"),
# "exception": ("dark green", "default"),
# }}}
# }
palette.update(palette_dict)
# vim: foldmethod=marker