mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
refactor: replace all window with custom ChromelessWindow
This commit is contained in:
parent
68061f82b1
commit
f5b35d3db2
23 changed files with 414 additions and 649 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue