fix some issues and add test Blazor frontend

This commit is contained in:
Vincent Maas committed 2024-05-10 13:35:35 +02:00
1 parent 27bc0505b7
commit 9a9424f1af
41 files changed
+1049 -23

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
namespace ColorControl.UI;
public class AppState
{
public string SelectedTheme { get; private set; } = "light";
public event Action? OnChange;
public void SetTheme(string theme)
{
SelectedTheme = theme;
NotifyStateChanged();
}
private void NotifyStateChanged() => OnChange?.Invoke();
}