From e671d26442a35a080aa9145db1ddb8c00fa6a47e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 11 Dec 2024 10:39:56 +0100 Subject: [PATCH] Split fields, type declarations and type use --- themes/ShinyCode-color-theme.json | 97 +++++++++++++------------------ 1 file changed, 40 insertions(+), 57 deletions(-) diff --git a/themes/ShinyCode-color-theme.json b/themes/ShinyCode-color-theme.json index 4914e0a..25cbdfb 100644 --- a/themes/ShinyCode-color-theme.json +++ b/themes/ShinyCode-color-theme.json @@ -52,7 +52,8 @@ "source", ], "settings": { - "foreground": "#E1E2E9" + "foreground": "#E1E2E9", + "fontStyle": "", } }, { @@ -63,6 +64,7 @@ ], "settings": { "foreground": "#3C4279", + "fontStyle": "", } }, { @@ -72,6 +74,7 @@ ], "settings": { "foreground": "#FFDBCA", // axiom 90 + "fontStyle": "", } }, { @@ -82,6 +85,7 @@ ], "settings": { "foreground": "#F79159", // axiom 70 + "fontStyle": "", } }, { @@ -92,6 +96,7 @@ ], "settings": { "foreground": "#B65E2D", // axiom 50 + "fontStyle": "", } }, { @@ -102,10 +107,11 @@ ], "settings": { "foreground": "#F2E57F", // action 90 + "fontStyle": "", } }, { - "name": "Function definitions", + "name": "Function declarations", "scope": [ "meta.function.definition entity.name.function", "meta.definition entity.name.function", @@ -122,6 +128,7 @@ ], "settings": { "foreground": "#6E7D16", // action 50 + "fontStyle": "", } }, { @@ -142,15 +149,40 @@ ], "settings": { "foreground": "#308832", // behavior 50 + "fontStyle": "", } }, { - "name": "Types", + "name": "Field", "scope": [ - "entity", + "variable.object.property", + "variable.other.property", ], "settings": { - "foreground": "#87D6BC", + "foreground": "#90F4EA", + "fontStyle": "", + } + }, + { + "name": "Type declarations", + "scope": [ + "meta.type.declaration entity.name.type", + ], + "settings": { + "foreground": "#00BEB4", + "fontStyle": "bold", + } + }, + { + "name": "Type use", + "scope": [ + "entity.name.type", + "support.type.primitive", + "meta.type.declaration meta.field.declaration entity.name.type", // over-over-ride type declaration for the contents of TypeScript types + ], + "settings": { + "foreground": "#00867D", + "fontStyle": "", } }, { @@ -160,17 +192,18 @@ ], "settings": { "foreground": "#89D0ED", + "fontStyle": "", } }, { "name": "Values", "scope": [ "constant", - "support", "string", ], "settings": { "foreground": "#D1BCFD", + "fontStyle": "", } }, { @@ -181,58 +214,8 @@ ], "settings": { "foreground": "#EEB4EA", + "fontStyle": "", } } ], - "semanticHighlighting": true, - "semanticTokenColors": { - "comment": { - "foreground":"#3C4279", - }, - "selfParameter": { - "foreground": "#FFDBCA", - }, - "keyword": { - "foreground": "#F58F59", - }, - "parameter": { - "foreground": "#F2E57F" - }, - "function.declaration":{ - "foreground": "#B9AC37", - "fontStyle": "bold" - }, - "method.declaration":{ - "foreground": "#B9AC37", - "fontStyle": "bold" - }, - "function": { - "foreground": "#6E7D16", - }, - "method": { - "foreground": "#6E7D16", - }, - "interface": { - "foreground":"#308832", - }, - "interface.declaration": { - "foreground": "#65BE60", - "fontStyle": "bold", - }, - "type": { - "foreground":"#87D6BC", - }, - "variable": { - "foreground":"#89D0ED", - }, - "string": { - "foreground":"#D1BCFD", - }, - "constant": { - "foreground":"#D1BCFD", - }, - "enum": { - "foreground":"#EEB4EA", - }, - } }