Adopt Semi desktop theme and fix UTF-8 process logs for 0.2.3

This commit is contained in:
tongtong committed 2026-11-13 14:56:19 +08:00
1 parent 5b3022e1f3
commit dc8edf0df6
16 files changed
+161 -55

No files matched your search

+6
View File
@@ -10,6 +10,12 @@ public partial class MainWindow : Window
Opened += async (_, _) => { if (DataContext is MainViewModel vm) await vm.InitializeAsync(); };
}
private void ThemeChanged(object? sender, RoutedEventArgs e)
{
if (sender is ToggleSwitch control && Avalonia.Application.Current is {} app)
app.RequestedThemeVariant = control.IsChecked == true ? Avalonia.Styling.ThemeVariant.Dark : Avalonia.Styling.ThemeVariant.Light;
}
private async void ImportCredentialsClick(object? sender, RoutedEventArgs e)
{
if (DataContext is not MainViewModel vm) return;