12 references to ThemeManager
Aspire.Dashboard (12)
Components\Dialogs\SettingsDialog.razor.cs (6)
21public required ThemeManager ThemeManager { get; init; } 36_currentSetting = ThemeManager.SelectedTheme ?? ThemeManager.ThemeSettingSystem; 39_themeChangedSubscription = ThemeManager.OnThemeChanged(async () => 41var newValue = ThemeManager.SelectedTheme!; 58await ThemeManager.RaiseThemeChangedAsync(_currentSetting);
Components\Layout\MainLayout.razor.cs (5)
33public required ThemeManager ThemeManager { get; init; } 75_themeChangedSubscription = ThemeManager.OnThemeChanged(async () => 79var newValue = ThemeManager.SelectedTheme!; 82ThemeManager.EffectiveTheme = effectiveTheme; 218await ThemeManager.EnsureInitializedAsync();
DashboardWebApplication.cs (1)
249builder.Services.AddScoped<ThemeManager>();