public async Task <ThemeSelectorOutput> GetThemesForSelector() { var themes = await _themeManager.GetAllThemesFromFiles(_server); var activeThemeName = await _settingStore.GetSettingOrNullAsync(TenantId, null, ConfigConst.Theme); var activeTheme = await _themeManager.GetTheme(activeThemeName.Value, _server); return(new ThemeSelectorOutput() { Themes = themes.Select(a => new ThemeDto() { Id = a.ThemeUniqueName, Preview = GetPreviewsFromFolder(a.PreviewsFolder, a.ThemeUniqueName), Released = a.InDevelopment, ThemeDescription = a.ThemeDescription, ThemeName = a.ThemeName, ThemeUniqueName = a.ThemeUniqueName, }).ToList(), ActiveTheme = activeTheme }); }