fix: fix theme toggle.

This commit is contained in:
rabbitism 2023-02-10 00:49:07 +08:00
parent 43db0c0293
commit 0d306bdf51

View File

@ -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;
}
}
}