diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-21 14:58:42 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-05-21 14:58:42 +0100 |
commit | 51e82fe6d2edd7ca66944540bdbbc8cb39e4b5d2 (patch) | |
tree | 4ba523d010901e2c68d2901217074494d01c22d1 /editors/code/package.json | |
parent | c6a5d871d7a670473a78e03852bb158f3b6d5be3 (diff) | |
parent | b08362f6d2973336764c52ebc7cc5e9f34f0d80a (diff) |
Merge #1299
1299: Use ThemeColor and add support for light themes r=matklad a=lnicola
Part of #1294.
- switch to `ThemeColor`
- add light and high contrast theme definitions
- highlight control flow keywords and `unsafe`
Co-authored-by: Laurențiu Nicola <[email protected]>
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 015b912b3..750c97bb1 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -268,6 +268,116 @@ | |||
268 | }, | 268 | }, |
269 | "pattern": "$rustc" | 269 | "pattern": "$rustc" |
270 | } | 270 | } |
271 | ], | ||
272 | "colors": [ | ||
273 | { | ||
274 | "id": "ralsp.comment", | ||
275 | "description": "Color for comments", | ||
276 | "defaults": { | ||
277 | "dark": "#6A9955", | ||
278 | "light": "#008000", | ||
279 | "highContrast": "#7CA668" | ||
280 | } | ||
281 | }, | ||
282 | { | ||
283 | "id": "ralsp.string", | ||
284 | "description": "Color for strings", | ||
285 | "defaults": { | ||
286 | "dark": "#CE9178", | ||
287 | "light": "#A31515", | ||
288 | "highContrast": "#CE9178" | ||
289 | } | ||
290 | }, | ||
291 | { | ||
292 | "id": "ralsp.keyword", | ||
293 | "description": "Color for keywords", | ||
294 | "defaults": { | ||
295 | "dark": "#569cd6", | ||
296 | "light": "#0000FF", | ||
297 | "highContrast": "#569CD6" | ||
298 | } | ||
299 | }, | ||
300 | { | ||
301 | "id": "ralsp.keyword.control", | ||
302 | "description": "Color for control keywords", | ||
303 | "defaults": { | ||
304 | "dark": "#C586C0", | ||
305 | "light": "#AF00DB", | ||
306 | "highContrast": "#C586C0" | ||
307 | } | ||
308 | }, | ||
309 | { | ||
310 | "id": "ralsp.keyword.unsafe", | ||
311 | "description": "Color for unsafe", | ||
312 | "defaults": { | ||
313 | "dark": "#FF3030", | ||
314 | "light": "#FF1010", | ||
315 | "highContrast": "#FF1010" | ||
316 | } | ||
317 | }, | ||
318 | { | ||
319 | "id": "ralsp.function", | ||
320 | "description": "Color for functions", | ||
321 | "defaults": { | ||
322 | "dark": "#DCDCAA", | ||
323 | "light": "#795E26", | ||
324 | "highContrast": "#DCDCAA" | ||
325 | } | ||
326 | }, | ||
327 | { | ||
328 | "id": "ralsp.parameter", | ||
329 | "description": "Color for parameters", | ||
330 | "defaults": { | ||
331 | "dark": "#9CDCFE", | ||
332 | "light": "#001080", | ||
333 | "highContrast": "#9CDCFE" | ||
334 | } | ||
335 | }, | ||
336 | { | ||
337 | "id": "ralsp.builtin", | ||
338 | "description": "Color for builtins", | ||
339 | "defaults": { | ||
340 | "dark": "#DD6718", | ||
341 | "light": "#DD6718", | ||
342 | "highContrast": "#DD6718" | ||
343 | } | ||
344 | }, | ||
345 | { | ||
346 | "id": "ralsp.text", | ||
347 | "description": "Color for text", | ||
348 | "defaults": { | ||
349 | "dark": "#D4D4D4", | ||
350 | "light": "#000000", | ||
351 | "highContrast": "#FFFFFF" | ||
352 | } | ||
353 | }, | ||
354 | { | ||
355 | "id": "ralsp.attribute", | ||
356 | "description": "Color for attributes", | ||
357 | "defaults": { | ||
358 | "dark": "#9FE9BF", | ||
359 | "light": "#1F4B1F", | ||
360 | "highContrast": "#108010" | ||
361 | } | ||
362 | }, | ||
363 | { | ||
364 | "id": "ralsp.literal", | ||
365 | "description": "Color for literals", | ||
366 | "defaults": { | ||
367 | "dark": "#BECEA8", | ||
368 | "light": "#09885A", | ||
369 | "highContrast": "#B5CEA8" | ||
370 | } | ||
371 | }, | ||
372 | { | ||
373 | "id": "ralsp.macro", | ||
374 | "description": "Color for DFAF8F", | ||
375 | "defaults": { | ||
376 | "dark": "#BFEBBF", | ||
377 | "light": "#DD6718", | ||
378 | "highContrast": "#ED7718" | ||
379 | } | ||
380 | } | ||
271 | ] | 381 | ] |
272 | } | 382 | } |
273 | } | 383 | } |