Repository navigation
Expand file tree
/
Copy pathLayoutInfo.cs
More file actions
86 lines (73 loc) · 2.25 KB
/
Copy pathLayoutInfo.cs
File metadata and controls
86 lines (73 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
using Avalonia.Controls;
using CommunityToolkit.Mvvm.ComponentModel;
namespace SourceGit.ViewModels
{
public class LayoutInfo : ObservableObject
{
public double LauncherWidth
{
get;
set;
} = 1280;
public double LauncherHeight
{
get;
set;
} = 720;
public int LauncherPositionX
{
get;
set;
} = int.MinValue;
public int LauncherPositionY
{
get;
set;
} = int.MinValue;
public WindowState LauncherWindowState
{
get;
set;
} = WindowState.Normal;
public double RepositorySidebarWidth
{
get;
set;
} = 250;
public double RepositorySearchCommitWidth
{
get;
set;
} = 250;
public bool IsSidebarCollapsedInLocalChanges
{
get => _isSidebarCollapsedInLocalChanges;
set => SetProperty(ref _isSidebarCollapsedInLocalChanges, value);
}
public GridLength WorkingCopyLeftWidth
{
get => _workingCopyLeftWidth;
set => SetProperty(ref _workingCopyLeftWidth, value);
}
public GridLength StashesLeftWidth
{
get => _stashesLeftWidth;
set => SetProperty(ref _stashesLeftWidth, value);
}
public GridLength CommitDetailChangesLeftWidth
{
get => _commitDetailChangesLeftWidth;
set => SetProperty(ref _commitDetailChangesLeftWidth, value);
}
public GridLength CommitDetailFilesLeftWidth
{
get => _commitDetailFilesLeftWidth;
set => SetProperty(ref _commitDetailFilesLeftWidth, value);
}
private GridLength _workingCopyLeftWidth = new GridLength(300, GridUnitType.Pixel);
private GridLength _stashesLeftWidth = new GridLength(300, GridUnitType.Pixel);
private GridLength _commitDetailChangesLeftWidth = new GridLength(256, GridUnitType.Pixel);
private GridLength _commitDetailFilesLeftWidth = new GridLength(256, GridUnitType.Pixel);
private bool _isSidebarCollapsedInLocalChanges = false;
}
}