mirror of
https://github.com/Maassoft/ColorControl.git
synced 2026-10-22 00:22:18 -05:00
fix some issues and add test Blazor frontend
This commit is contained in:
1 parent
27bc0505b7
commit
9a9424f1af
41 files changed
+1049
-23
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user