diff --git a/Wave/Components/App.razor b/Wave/Components/App.razor
index a251d54..3cce66d 100644
--- a/Wave/Components/App.razor
+++ b/Wave/Components/App.razor
@@ -1,7 +1,7 @@
@using System.Globalization
@using Microsoft.AspNetCore.Localization
-
+
@@ -46,6 +46,8 @@
[CascadingParameter]
public HttpContext? HttpContext { get; set; }
+ private string? UserTheme { get; set; }
+
protected override void OnInitialized() {
HttpContext?.Response.Cookies.Append(
CookieRequestCultureProvider.DefaultCookieName,
@@ -57,5 +59,10 @@
IsEssential = true,
SameSite = SameSiteMode.Strict
});
+
+ if (HttpContext?.Request.Cookies.ContainsKey(".Wave.Theme") is true) {
+ HttpContext.Request.Cookies.TryGetValue(".Wave.Theme", out string? theme);
+ UserTheme = theme;
+ }
}
}
\ No newline at end of file
diff --git a/Wave/Components/Layout/MainLayout.razor b/Wave/Components/Layout/MainLayout.razor
index 0fa5a09..0206b22 100644
--- a/Wave/Components/Layout/MainLayout.razor
+++ b/Wave/Components/Layout/MainLayout.razor
@@ -59,11 +59,13 @@
-