mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 11:44:59 +00:00
ux: more flex layout for left siderbar groups
This commit is contained in:
parent
3ce580b682
commit
8faa8c7378
4 changed files with 480 additions and 394 deletions
|
@ -24,7 +24,6 @@ namespace SourceGit.ViewModels
|
|||
public string Name { get; set; }
|
||||
public BranchTreeNodeType Type { get; set; }
|
||||
public object Backend { get; set; }
|
||||
public bool IsExpanded { get; set; }
|
||||
public bool IsFiltered { get; set; }
|
||||
public List<BranchTreeNode> Children { get; set; } = new List<BranchTreeNode>();
|
||||
|
||||
|
@ -69,6 +68,12 @@ namespace SourceGit.ViewModels
|
|||
set => SetProperty(ref _isSelected, value);
|
||||
}
|
||||
|
||||
public bool IsExpanded
|
||||
{
|
||||
get => _isExpanded;
|
||||
set => SetProperty(ref _isExpanded, value);
|
||||
}
|
||||
|
||||
public string Tooltip
|
||||
{
|
||||
get
|
||||
|
@ -108,7 +113,9 @@ namespace SourceGit.ViewModels
|
|||
child.UpdateCornerRadius(ref prev);
|
||||
}
|
||||
}
|
||||
|
||||
private bool _isSelected = false;
|
||||
private bool _isExpanded = false;
|
||||
private CornerRadius _cornerRadius = new CornerRadius(DEFAULT_CORNER);
|
||||
|
||||
public class Builder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue