public Theme GetThemeByName(string name) { Theme result = null; foreach (Theme theme in Themes.Themes) { if (theme.Name == name) { result = theme; break; } } return result; }
public ThemeResult GetTheme(string name) { ThemeResult result = new ThemeResult(); Theme theme = _loadedConfig.GetThemeByName(name); if (theme != null) { result.Success = true; result.Theme = theme; } return(result); }