From 6539a73c29fb4b9990974e71644ae148788f8ed0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 11 Feb 2026 23:42:21 +0000 Subject: [PATCH 1/3] Initial plan From 02bd23513c935c1f09d5659889362595efcae4b2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 11 Feb 2026 23:43:54 +0000 Subject: [PATCH 2/3] Add IsDarkMode parameter documentation to README Co-authored-by: ScarletKuro <19953225+ScarletKuro@users.noreply.github.com> --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index efabb1d..2285fa2 100644 --- a/README.md +++ b/README.md @@ -35,12 +35,13 @@ Add the following to your HTML `head` section, it's either `index.html` or `_Lay Add the components in your `MainLayout.razor` and inside `` ```razor - + ``` Add the following inside your @code for `MainLayout.razor` ```razor private ThemeManagerTheme _themeManager = new ThemeManagerTheme(); public bool _themeManagerOpen = false; +private bool _isDarkMode; void OpenThemeManager(bool value) { @@ -58,6 +59,14 @@ protected override void OnInitialized() StateHasChanged(); } ``` +## Dark Mode Support +If you need dark mode support, make sure to bind the `IsDarkMode` parameter to a variable that controls whether your application is in dark mode. This allows the Theme Manager to adjust and display the appropriate palette (light or dark) when you're customizing themes. + +The `_isDarkMode` variable should be synchronized with your `MudThemeProvider`'s `IsDarkMode` to ensure consistent dark mode behavior across your application: +```razor + +``` + Connect the ThemeManagerTheme with `MudThemeProvider` to control all the theme colors. You can also connect `MudAppBar` and `MudDrawer` directly. ```html From ee93955978d2592b08c56bad7602cae336c8835a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 11 Feb 2026 23:44:28 +0000 Subject: [PATCH 3/3] Fix _themeManagerOpen to be private for consistency Co-authored-by: ScarletKuro <19953225+ScarletKuro@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2285fa2..800c514 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Add the components in your `MainLayout.razor` and inside `` Add the following inside your @code for `MainLayout.razor` ```razor private ThemeManagerTheme _themeManager = new ThemeManagerTheme(); -public bool _themeManagerOpen = false; +private bool _themeManagerOpen = false; private bool _isDarkMode; void OpenThemeManager(bool value)