refactor: replace all window with custom ChromelessWindow

This commit is contained in:
leo 2024-06-13 11:54:10 +08:00
parent 68061f82b1
commit f5b35d3db2
No known key found for this signature in database
GPG key ID: B528468E49CD0E58
23 changed files with 414 additions and 649 deletions

View file

@ -3,7 +3,7 @@ using Avalonia.Input;
namespace SourceGit.Views
{
public partial class BranchCompare : Window
public partial class BranchCompare : ChromelessWindow
{
public BranchCompare()
{
@ -20,17 +20,6 @@ namespace SourceGit.Views
e.Handled = true;
}
private void CustomResizeWindow(object sender, PointerPressedEventArgs e)
{
if (sender is Border border)
{
if (border.Tag is WindowEdge edge)
{
BeginResizeDrag(edge, e);
}
}
}
private void BeginMoveWindow(object sender, PointerPressedEventArgs e)
{
BeginMoveDrag(e);