2024-07-14 09:30:31 -07:00
|
|
|
|
using Avalonia.Controls;
|
2024-06-11 01:36:52 -07:00
|
|
|
|
|
|
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace SourceGit.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class LayoutInfo : ObservableObject
|
|
|
|
|
{
|
|
|
|
|
public double LauncherWidth
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = 1280;
|
|
|
|
|
|
|
|
|
|
public double LauncherHeight
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = 720;
|
|
|
|
|
|
2024-06-11 19:22:26 -07:00
|
|
|
|
public WindowState LauncherWindowState
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = WindowState.Normal;
|
|
|
|
|
|
2024-06-11 01:36:52 -07:00
|
|
|
|
public GridLength RepositorySidebarWidth
|
|
|
|
|
{
|
|
|
|
|
get => _repositorySidebarWidth;
|
|
|
|
|
set => SetProperty(ref _repositorySidebarWidth, value);
|
|
|
|
|
}
|
|
|
|
|
|
2024-08-28 19:17:22 -07:00
|
|
|
|
public GridLength HistoriesAuthorColumnWidth
|
|
|
|
|
{
|
|
|
|
|
get => _historiesAuthorColumnWidth;
|
|
|
|
|
set => SetProperty(ref _historiesAuthorColumnWidth, value);
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-11 01:36:52 -07:00
|
|
|
|
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 _repositorySidebarWidth = new GridLength(250, GridUnitType.Pixel);
|
2024-08-28 19:17:22 -07:00
|
|
|
|
private GridLength _historiesAuthorColumnWidth = new GridLength(120, GridUnitType.Pixel);
|
2024-06-11 01:36:52 -07:00
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|