public string GetThemeCodeCssUrl(DemoTheme theme) { var highlightjsTheme = HighlightJSThemes[DefaultThemeName]; if (HighlightJSThemes.ContainsKey(theme.Name)) { highlightjsTheme = HighlightJSThemes[theme.Name]; } return($"//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/{highlightjsTheme}.min.css"); }
public void SetActiveThemeByName(string themeName) { var theme = FindThemeByName(themeName); if (theme != null) { _activeTheme = theme; } else { _activeTheme = DefaultTheme; } }
public string GetThemeCssUrl(DemoTheme theme) { return($"_content/BlazorDemo/css/switcher-resources/themes/{theme.Name}/bootstrap.min.css"); }