From b27f68729146c44b667b4960c442e5d84a83282b Mon Sep 17 00:00:00 2001 From: Daniel Harvey Date: Thu, 21 May 2026 15:22:52 -0400 Subject: [PATCH] =?UTF-8?q?remove=20broken=20MudBlazor.ThemeManager=203.0.?= =?UTF-8?q?0=20dependency=20=E2=80=94=20incompatible=20with=20MudBlazor=20?= =?UTF-8?q?8.15.0,=20ThemeManagerTheme=20wrapper=20produced=20NRE=20in=20G?= =?UTF-8?q?enerateTheme;=20wire=20MudThemeProvider=20to=20DeepDrftPalettes?= =?UTF-8?q?.Default=20and=20hardcode=20AppBar=20Elevation=3D4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DeepDrftPublic.Client.csproj | 1 - DeepDrftPublic.Client/Layout/MainLayout.razor | 26 ++----------------- DeepDrftPublic.Client/_Imports.razor | 1 - DeepDrftPublic/Components/App.razor | 1 - 4 files changed, 2 insertions(+), 27 deletions(-) diff --git a/DeepDrftPublic.Client/DeepDrftPublic.Client.csproj b/DeepDrftPublic.Client/DeepDrftPublic.Client.csproj index 8cdd5d3..715e8e0 100644 --- a/DeepDrftPublic.Client/DeepDrftPublic.Client.csproj +++ b/DeepDrftPublic.Client/DeepDrftPublic.Client.csproj @@ -14,7 +14,6 @@ - diff --git a/DeepDrftPublic.Client/Layout/MainLayout.razor b/DeepDrftPublic.Client/Layout/MainLayout.razor index b5d3d33..8624e0c 100644 --- a/DeepDrftPublic.Client/Layout/MainLayout.razor +++ b/DeepDrftPublic.Client/Layout/MainLayout.razor @@ -7,14 +7,14 @@ @inherits LayoutComponentBase @implements IDisposable - +
- + @Body @@ -68,28 +68,6 @@ // Register to persist state when prerendering completes _persistingSubscription = PersistentState.RegisterOnPersisting(PersistDarkMode); - - // Palettes + typography live in DeepDrftShared.Client.Common.DeepDrftPalettes - // so the CMS host can reuse them. We wrap into ThemeManagerTheme to keep - // the MudBlazor.ThemeManager integration intact. - _themeManager = new ThemeManagerTheme - { - Theme = DeepDrftPalettes.Default, - }; - } - - private ThemeManagerTheme _themeManager; - public bool _themeManagerOpen = false; - - void OpenThemeManager(bool value) - { - _themeManagerOpen = value; - } - - void UpdateTheme(ThemeManagerTheme value) - { - _themeManager = value; - StateHasChanged(); } // Theme wrapper class for CSS targeting diff --git a/DeepDrftPublic.Client/_Imports.razor b/DeepDrftPublic.Client/_Imports.razor index 4b4dfdf..a17ac52 100644 --- a/DeepDrftPublic.Client/_Imports.razor +++ b/DeepDrftPublic.Client/_Imports.razor @@ -8,7 +8,6 @@ @using Microsoft.JSInterop @using MudBlazor @using MudBlazor.Services -@using MudBlazor.ThemeManager @using DeepDrftPublic.Client.Common @using DeepDrftShared.Client.Common @using DeepDrftShared.Client.Components \ No newline at end of file diff --git a/DeepDrftPublic/Components/App.razor b/DeepDrftPublic/Components/App.razor index 94e9d0b..41adde5 100644 --- a/DeepDrftPublic/Components/App.razor +++ b/DeepDrftPublic/Components/App.razor @@ -9,7 +9,6 @@ -