style<Window>: icons for MaximizeWindow/RestoreWindow button

This commit is contained in:
leo 2021-06-22 10:09:50 +08:00
parent 787c1a02d5
commit 794394ef0c
9 changed files with 64 additions and 27 deletions

View file

@ -57,14 +57,6 @@ namespace SourceGit.Views {
SystemCommands.MinimizeWindow(this);
}
private void MaximizeOrRestore(object sender, RoutedEventArgs e) {
if (WindowState == WindowState.Normal) {
SystemCommands.MaximizeWindow(this);
} else {
SystemCommands.RestoreWindow(this);
}
}
private void Quit(object sender, RoutedEventArgs e) {
Application.Current.Shutdown();
}