Adopt Semi desktop theme and fix UTF-8 process logs for 0.2.3
This commit is contained in:
1 parent
5b3022e1f3
commit
dc8edf0df6
16 files changed
+161
-55
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user