-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShellUiModels.cs
More file actions
62 lines (37 loc) · 1.62 KB
/
Copy pathShellUiModels.cs
File metadata and controls
62 lines (37 loc) · 1.62 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
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Media;
using SelfContainedDeployment.Git;
namespace SelfContainedDeployment
{
public sealed class InspectorDirectoryTreeItem
{
public string Name { get; init; }
public string RelativePath { get; init; }
public bool IsDirectory { get; init; }
public string IconGlyph { get; init; }
public FontFamily IconFontFamily { get; init; }
public double IconFontSize { get; init; } = 11;
public bool UseGlyphBadge { get; init; }
public Brush IconBrush { get; init; }
public string KindText { get; init; }
public Brush KindBrush { get; init; }
public string StatusText { get; init; }
public Brush StatusBrush { get; init; }
public Visibility KindVisibility => string.IsNullOrWhiteSpace(KindText) ? Visibility.Collapsed : Visibility.Visible;
public Visibility StatusVisibility => string.IsNullOrWhiteSpace(StatusText) ? Visibility.Collapsed : Visibility.Visible;
}
public sealed class DiffFileListItem
{
public GitChangedFile File { get; init; }
public string AutomationId { get; init; }
public string AutomationName { get; init; }
public string StatusSymbol { get; init; }
public Brush StatusBrush { get; init; }
public string FileName { get; init; }
public string MetaText { get; init; }
public string AddedText { get; init; }
public Visibility AddedVisibility { get; init; }
public string RemovedText { get; init; }
public Visibility RemovedVisibility { get; init; }
}
}