From 1e8347230ce17a82eb4f5ea23e6460cdb8d1ddc8 Mon Sep 17 00:00:00 2001 From: 6d486f49 Date: Thu, 28 May 2026 11:55:48 -0400 Subject: [PATCH] ... --- WebAssembly/App.razor | 42 ++++++++++++++++++++++---- WebAssembly/Layout/MainLayout.razor | 47 +++++++++++++++++++++++++---- WebAssembly/_Imports.razor | 1 + WebAssembly/wwwroot/index.html | 1 + 4 files changed, 79 insertions(+), 12 deletions(-) diff --git a/WebAssembly/App.razor b/WebAssembly/App.razor index a29d46f..065b6bf 100644 --- a/WebAssembly/App.razor +++ b/WebAssembly/App.razor @@ -13,10 +13,17 @@ diff --git a/WebAssembly/Layout/MainLayout.razor b/WebAssembly/Layout/MainLayout.razor index 05cf980..91268ef 100644 --- a/WebAssembly/Layout/MainLayout.razor +++ b/WebAssembly/Layout/MainLayout.razor @@ -1,19 +1,54 @@ -@using MudBlazor -@inherits LayoutComponentBase +@inherits LayoutComponentBase - - - + + + +
@Body
-
\ No newline at end of file + + +@code { + private bool isDarkMode = true; + + private MudTheme currentTheme = new() + { + PaletteLight = new PaletteLight + { + Primary = "#4308a3", + Secondary = "#432462", + Background = "#f5f5f5", + Surface = "#ffffff", + AppbarBackground = "#e8e8e8", + TextPrimary = "#1a1a1a", + }, + PaletteDark = new PaletteDark + { + Primary = "#4308a3", + Secondary = "#432462", + Background = "#161618", + Surface = "#252526", + AppbarBackground = "#161618", + TextPrimary = "#ffffff", + } + }; + + private void ToggleDarkMode() + { + isDarkMode = !isDarkMode; + } +} \ No newline at end of file diff --git a/WebAssembly/_Imports.razor b/WebAssembly/_Imports.razor index 164f30c..cd29e81 100644 --- a/WebAssembly/_Imports.razor +++ b/WebAssembly/_Imports.razor @@ -7,4 +7,5 @@ @using Microsoft.AspNetCore.Components.WebAssembly.Http @using Microsoft.JSInterop @using WebAssembly +@using MudBlazor @using WebAssembly.Layout \ No newline at end of file diff --git a/WebAssembly/wwwroot/index.html b/WebAssembly/wwwroot/index.html index ef9a49e..6be2b7f 100644 --- a/WebAssembly/wwwroot/index.html +++ b/WebAssembly/wwwroot/index.html @@ -8,6 +8,7 @@ +