12 references to ThemeManager
Aspire.Dashboard (12)
Components\Dialogs\SettingsDialog.razor.cs (6)
22public required ThemeManager ThemeManager { get; init; } 40_currentSetting = ThemeManager.SelectedTheme ?? ThemeManager.ThemeSettingSystem; 43_themeChangedSubscription = ThemeManager.OnThemeChanged(async () => 45var newValue = ThemeManager.SelectedTheme!; 62await 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; 220await ThemeManager.EnsureInitializedAsync();
DashboardWebApplication.cs (1)
249builder.Services.AddScoped<ThemeManager>();