diff --git a/src/TextMateSharp.Grammars/Resources/Themes/hc_light.json b/src/TextMateSharp.Grammars/Resources/Themes/hc_light.json index 83a4083..8704efb 100644 --- a/src/TextMateSharp.Grammars/Resources/Themes/hc_light.json +++ b/src/TextMateSharp.Grammars/Resources/Themes/hc_light.json @@ -1,6 +1,7 @@ { "$schema": "vscode://schemas/color-theme", "name": "Light High Contrast", + "include": "./light_vs.json", "tokenColors": [ { "scope": ["meta.embedded", "source.groovy.embedded"], diff --git a/src/TextMateSharp.Grammars/Resources/Themes/light_vs.json b/src/TextMateSharp.Grammars/Resources/Themes/light_vs.json index d88e6ff..6d1cc42 100644 --- a/src/TextMateSharp.Grammars/Resources/Themes/light_vs.json +++ b/src/TextMateSharp.Grammars/Resources/Themes/light_vs.json @@ -36,7 +36,7 @@ "string meta.image.inline.markdown" ], "settings": { - "foreground": "#000000ff" + "foreground": "#000000" } }, { diff --git a/src/TextMateSharp/Themes/Theme.cs b/src/TextMateSharp/Themes/Theme.cs index 1fbaee9..395f939 100644 --- a/src/TextMateSharp/Themes/Theme.cs +++ b/src/TextMateSharp/Themes/Theme.cs @@ -34,7 +34,10 @@ public static Theme CreateFromRawTheme( // First get colors from include, then try and overwrite with local colors.. // I don't see this happening currently, but here just in case that ever happens. - ParsedTheme.ParsedGuiColors(themeInclude, guiColorsDictionary); + if (themeInclude != null) + { + ParsedTheme.ParsedGuiColors(themeInclude, guiColorsDictionary); + } ParsedTheme.ParsedGuiColors(source, guiColorsDictionary); return new Theme(colorMap, theme, include, guiColorsDictionary);