mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00

* use system chrome instead of custom caption button on macOS * move `BeginMoveWindow` and `MaximizeOrRestoreWindow` to `ChromelessWindow` * better supports for fullscreen mode on macOS * redesign the layout of title bar for all windows Signed-off-by: leo <longshuang@msn.cn>
23 lines
550 B
C#
23 lines
550 B
C#
using Avalonia.Interactivity;
|
|
|
|
namespace SourceGit.Views
|
|
{
|
|
public partial class ConventionalCommitMessageBuilder : ChromelessWindow
|
|
{
|
|
public ConventionalCommitMessageBuilder()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void OnApplyClicked(object _, RoutedEventArgs e)
|
|
{
|
|
if (DataContext is ViewModels.ConventionalCommitMessageBuilder builder)
|
|
{
|
|
if (builder.Apply())
|
|
Close();
|
|
}
|
|
|
|
e.Handled = true;
|
|
}
|
|
}
|
|
}
|