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