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