mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
refactor<*>: rewrite all with AvaloniaUI
This commit is contained in:
parent
0136904612
commit
2a62596999
521 changed files with 19780 additions and 23244 deletions
|
@ -1,8 +1,6 @@
|
|||
namespace SourceGit.Models {
|
||||
using Avalonia.Media;
|
||||
|
||||
/// <summary>
|
||||
/// 修饰类型
|
||||
/// </summary>
|
||||
namespace SourceGit.Models {
|
||||
public enum DecoratorType {
|
||||
None,
|
||||
CurrentBranchHead,
|
||||
|
@ -11,11 +9,15 @@ namespace SourceGit.Models {
|
|||
Tag,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 提交的附加修饰
|
||||
/// </summary>
|
||||
public class Decorator {
|
||||
public DecoratorType Type { get; set; } = DecoratorType.None;
|
||||
public string Name { get; set; } = "";
|
||||
}
|
||||
|
||||
public static class DecoratorResources {
|
||||
public static readonly IBrush[] Backgrounds = [
|
||||
new SolidColorBrush(0xFF02C302),
|
||||
new SolidColorBrush(0xFFFFB835),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue