From 0d306bdf518c04cdf96e95810ab38cabccf666fc Mon Sep 17 00:00:00 2001 From: rabbitism Date: Fri, 10 Feb 2023 00:49:07 +0800 Subject: [PATCH] fix: fix theme toggle. --- demo/Semi.Avalonia.Demo/Views/MainView.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/Semi.Avalonia.Demo/Views/MainView.axaml.cs b/demo/Semi.Avalonia.Demo/Views/MainView.axaml.cs index b48ee71..3a69c9c 100644 --- a/demo/Semi.Avalonia.Demo/Views/MainView.axaml.cs +++ b/demo/Semi.Avalonia.Demo/Views/MainView.axaml.cs @@ -18,7 +18,7 @@ public partial class MainView : UserControl if (app is not null) { var theme = app.ActualThemeVariant; - app.RequestedThemeVariant = theme == ThemeVariant.Dark ? ThemeVariant.Default : ThemeVariant.Dark; + app.RequestedThemeVariant = theme == ThemeVariant.Dark ? ThemeVariant.Light : ThemeVariant.Dark; } } } \ No newline at end of file