-
Notifications
You must be signed in to change notification settings - Fork 11
/
definitions.py
260 lines (247 loc) · 11.5 KB
/
definitions.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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
"""Themes color definitions."""
from build import ColorSplit
# Colors
colorNone = ColorSplit("#000000").set_alpha(0)
colorWhite = ColorSplit("#ffffff")
colorBlack = ColorSplit("#000000")
colorGrey = ColorSplit("#bec9d3", "#2e2e37")
colorGreyStrong = ColorSplit("#6b7a88", "#a8a8b1")
colorGreyLight = ColorSplit("#e7ecf2", "#1e1d27")
colorGreyOnBlack = ColorSplit("#65696e", colorGrey)
colorPurple = ColorSplit("#7d46fc")
colorBlue = ColorSplit("#004bff")
colorCyan = ColorSplit("#00d2ff")
colorGreen = ColorSplit("#00ff68")
colorYellow = ColorSplit("#ffca00")
colorOrange = ColorSplit("#ff9900")
colorRed = ColorSplit("#ff0032")
colorMain = ColorSplit(colorWhite, colorBlack)
colorMainNegative = ColorSplit(colorBlack, colorWhite)
colorMainContrast = ColorSplit("#f4f6fc", "#0a0b0f")
colorMainContrastTransparent = ColorSplit("#99a7e1", "#616a93").set_alpha(0.1)
colorPrimary = ColorSplit(colorBlue, colorPurple)
colorPrimaryNegative = colorWhite
colorPrimaryHighlight = ColorSplit("#0064ff", colorPrimary).set_alpha(0.15, 0.25)
colorPrimaryHighlightStrong = colorPrimaryHighlight.with_alpha(0.3, 0.5)
colorPrimaryHighlightLight = colorPrimaryHighlight.with_alpha(0.05, 0.08)
colorAdded = colorGreen
colorAddedHighlight = colorAdded.with_alpha(0.1, 0.2)
colorDeleted = colorRed
colorDeletedHighlight = colorDeleted.with_alpha(0.1, 0.2)
colorError = colorRed
colorWarning = colorOrange
colorFind = colorYellow.with_alpha(0.6)
colorFindHighlight = colorFind.with_alpha(0.3)
colorStackFocused = colorOrange.with_alpha(0.6)
colorStack = colorOrange.with_alpha(0.3)
colorBorder = colorGreyLight
# Theme definitions
definitions = {
"colors": {
"activityBar.background": colorMain,
"activityBar.border": colorNone,
"activityBar.foreground": colorGrey,
"activityBarBadge.background": colorMainNegative,
"activityBarBadge.foreground": colorMain,
"badge.background": colorMainNegative,
"badge.foreground": colorMain,
"button.background": colorPrimary,
"button.foreground": colorPrimaryNegative,
"contrastBorder": colorNone,
"debugToolBar.background": colorMainContrast,
"diffEditor.insertedTextBackground": colorAddedHighlight,
"diffEditor.removedTextBackground": colorDeletedHighlight,
"dropdown.background": colorMainContrast,
"dropdown.border": colorBorder,
"dropdown.foreground": colorMainNegative,
"editor.background": colorMain,
"editor.findMatchBackground": colorFind,
"editor.findMatchHighlightBackground": colorFindHighlight,
"editor.focusedStackFrameHighlightBackground": colorStackFocused,
"editor.foreground": colorMainNegative,
"editor.lineHighlightBackground": colorPrimaryHighlightLight,
"editor.lineHighlightBorder": colorNone,
"editor.selectionBackground": colorPrimaryHighlightStrong,
"editor.selectionForeground": colorMain,
"editor.selectionHighlightBorder": ColorSplit(colorNone, colorPrimaryHighlight),
"editor.stackFrameHighlightBackground": colorStack,
"editor.wordHighlightBackground": colorPrimaryHighlight,
"editor.wordHighlightStrongBackground": colorPrimaryHighlightStrong,
"editorBracketMatch.background": colorPrimaryHighlightStrong,
"editorBracketMatch.border": colorNone,
"editorCursor.foreground": colorPrimary,
"editorError.foreground": colorError,
"editorGroup.border": colorMainContrast,
"editorGroupHeader.tabsBackground": colorMain,
"editorGroupHeader.tabsBorder": colorNone,
"editorGutter.addedBackground": colorAdded,
"editorGutter.deletedBackground": colorDeleted,
"editorGutter.modifiedBackground": colorMainNegative,
"editorIndentGuide.background": colorMainContrast,
"editorLineNumber.activeForeground": colorGrey,
"editorLineNumber.foreground": ColorSplit("#ebf0f5", colorGreyLight),
"editorLink.activeForeground": colorPrimary,
"editorOverviewRuler.addedForeground": colorNone,
"editorOverviewRuler.border": colorNone,
"editorOverviewRuler.bracketMatchForeground": colorPrimaryHighlightStrong,
"editorOverviewRuler.errorForeground": colorError,
"editorOverviewRuler.findMatchForeground": colorFind,
"editorOverviewRuler.modifiedForeground": colorMainNegative,
"editorOverviewRuler.selectionHighlightForeground": colorPrimaryHighlightStrong,
"editorOverviewRuler.warningForeground": colorWarning,
"editorOverviewRuler.wordHighlightForeground": colorPrimaryHighlight,
"editorOverviewRuler.wordHighlightStrongForeground": colorPrimaryHighlightStrong,
"editorRuler.foreground": colorMainContrast,
"editorSuggestWidget.foreground": colorMainNegative,
"editorWarning.foreground": colorWarning,
"editorWidget.background": colorMainContrast,
"editorWidget.border": colorBorder,
"errorForeground": colorError,
"extensionButton.prominentBackground": colorPrimary,
"extensionButton.prominentForeground": colorPrimaryNegative,
"extensionButton.prominentHoverBackground": colorPrimary,
"focusBorder": colorBorder,
"foreground": colorMainNegative,
"gitDecoration.ignoredResourceForeground": colorGrey,
"gitDecoration.modifiedResourceForeground": colorMainNegative,
"gitDecoration.untrackedResourceForeground": colorMainNegative,
"input.background": colorMainContrast,
"input.border": colorBorder,
"input.foreground": colorMainNegative,
"input.placeholderForeground": colorGrey,
"list.activeSelectionBackground": colorMainNegative,
"list.activeSelectionForeground": colorMain,
"list.dropBackground": colorPrimaryHighlightStrong,
"list.focusBackground": colorPrimaryHighlight,
"list.focusForeground": colorMainNegative,
"list.highlightForeground": colorMainNegative,
"list.hoverBackground": colorMainContrast,
"list.inactiveSelectionBackground": colorMainContrast,
"list.inactiveSelectionForeground": colorMainNegative,
"panel.background": colorMainContrast,
"panel.border": colorNone,
"panelTitle.activeBorder": colorGrey,
"peekView.border": colorMainNegative,
"peekViewEditor.background": colorNone,
"peekViewEditor.matchHighlightBackground": colorFind,
"peekViewResult.background": colorNone,
"peekViewResult.fileForeground": colorGreyStrong,
"peekViewResult.lineForeground": colorGreyStrong,
"peekViewResult.matchHighlightBackground": colorFind,
"peekViewResult.selectionBackground": colorMainNegative,
"peekViewResult.selectionForeground": colorMain,
"peekViewTitle.background": colorNone,
"peekViewTitleDescription.foreground": colorGrey,
"peekViewTitleLabel.foreground": colorMainNegative,
"progressBar.background": colorPrimary,
"scrollbar.shadow": colorNone,
"scrollbarSlider.background": colorMainContrastTransparent,
"scrollbarSlider.hoverBackground": colorMainNegative,
"sideBar.background": colorMain,
"sideBar.foreground": colorGreyStrong,
"sideBarSectionHeader.background": colorMainContrast,
"sideBarSectionHeader.foreground": colorGreyStrong,
"sideBarTitle.foreground": colorGrey,
"statusBar.background": colorBlack,
"statusBar.debuggingBackground": colorOrange,
"statusBar.debuggingForeground": colorBlack,
"statusBar.foreground": colorGreyOnBlack,
"statusBar.noFolderBackground": colorBlack,
"tab.activeBackground": colorMainNegative,
"tab.activeForeground": colorMain,
"tab.activeModifiedBorder": colorNone,
"tab.border": colorNone,
"tab.inactiveBackground": colorNone,
"tab.inactiveForeground": colorGrey,
"tab.inactiveModifiedBorder": colorMainNegative,
"terminal.ansiBlack": colorMainNegative,
"terminal.ansiBlue": colorBlue,
"terminal.ansiBrightBlack": colorMainNegative,
"terminal.ansiBrightBlue": colorBlue,
"terminal.ansiBrightCyan": colorCyan,
"terminal.ansiBrightGreen": colorGreen,
"terminal.ansiBrightMagenta": colorPurple,
"terminal.ansiBrightRed": colorRed,
"terminal.ansiBrightWhite": colorWhite,
"terminal.ansiBrightYellow": colorYellow,
"terminal.ansiCyan": colorCyan,
"terminal.ansiGreen": colorGreen,
"terminal.ansiMagenta": colorPurple,
"terminal.ansiRed": colorRed,
"terminal.ansiWhite": colorWhite,
"terminal.ansiYellow": colorYellow,
"terminal.foreground": colorMainNegative,
"terminal.selectionBackground": colorPrimaryHighlightStrong,
"terminalCursor.foreground": colorPrimary,
"textLink.activeForeground": colorPrimary,
"textLink.foreground": colorPrimary,
"titleBar.activeBackground": colorMain,
"titleBar.activeForeground": colorGreyStrong,
"titleBar.inactiveBackground": colorMain,
"titleBar.inactiveForeground": colorGrey,
"welcomePage.buttonBackground": colorMainContrast,
"welcomePage.buttonHoverBackground": colorPrimaryHighlight,
"widget.shadow": colorNone,
},
"tokenColors": [
{
"scope": ["comment", "string.quoted.docstring"],
"settings": {"foreground": colorGrey},
},
{"scope": ["string"], "settings": {"foreground": colorGreyStrong}},
{
"scope": ["punctuation.definition.string", "storage.type.string.python"],
"settings": {"foreground": colorMainNegative},
},
{
"scope": [
"beginning.punctuation",
"entity.name.section.group-title",
"entity.name.tag",
"entity.other.attribute-name.class",
"entity.other.attribute-name.id",
"keyword.const",
"keyword.control",
"keyword.function",
"keyword.import",
"keyword.operator.assignment",
"keyword.operator.comparison",
"keyword.operator.decrement",
"keyword.operator.expression",
"keyword.operator.increment",
"keyword.operator.increment-decrement",
"keyword.operator.logical",
"keyword.operator.misc",
"keyword.operator.new",
"keyword.operator.other",
"keyword.operator.ternary",
"keyword.other.fn",
"keyword.other.rust",
"keyword.other.special-method",
"keyword.other.where",
"keyword.package",
"keyword.type",
"keyword.var",
"markup.heading",
"meta.tag.sgml.doctype.html",
"punctuation.separator.key-value",
"storage.modifier",
"storage.type.class",
"storage.type.enum",
"storage.type.function",
"storage.type.import",
"storage.type.interface",
"storage.type.js",
"storage.type.namespace",
"storage.type.property",
"storage.type.rust",
"storage.type.string.python",
"storage.type.ts",
"storage.type.tsx",
"storage.type.type",
"support.type.object.module",
],
"settings": {"fontStyle": "bold"},
},
],
}