public IHighlightingDefinition LoadDefinition(Maybe <string> theme)
        {
            var resourceName = @"LiteDbExplorer.Wpf.Modules.AvalonEdit.Highlighting.Json.xshd";

            if (theme.HasValue && theme.Value.Equals(ThemeDark, StringComparison.OrdinalIgnoreCase))
            {
                resourceName = resourceName.Replace(@".xshd", @".dark.xshd");
            }

            return(HighlightingHelper.LoadHighlightingFromAssembly(typeof(HighlightingHelper).Assembly, resourceName));
        }
 public IHighlightingDefinition LoadDefinition(Maybe <string> theme)
 {
     return(HighlightingHelper.LoadHighlightingFromAssembly(typeof(HighlightingHelper).Assembly,
                                                            @"LiteDbExplorer.Wpf.Modules.AvalonEdit.Highlighting.Log.xshd"));
 }