2024-02-05 23:08:37 -08:00
|
|
|
|
using Avalonia.Media;
|
2020-07-03 00:24:31 -07:00
|
|
|
|
|
2024-03-17 18:37:06 -07:00
|
|
|
|
namespace SourceGit.Models
|
|
|
|
|
{
|
|
|
|
|
public enum DecoratorType
|
|
|
|
|
{
|
2020-07-03 00:24:31 -07:00
|
|
|
|
None,
|
|
|
|
|
CurrentBranchHead,
|
|
|
|
|
LocalBranchHead,
|
|
|
|
|
RemoteBranchHead,
|
|
|
|
|
Tag,
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-17 18:37:06 -07:00
|
|
|
|
public class Decorator
|
|
|
|
|
{
|
2021-04-29 05:05:55 -07:00
|
|
|
|
public DecoratorType Type { get; set; } = DecoratorType.None;
|
|
|
|
|
public string Name { get; set; } = "";
|
2020-07-03 00:24:31 -07:00
|
|
|
|
}
|
2024-02-05 23:08:37 -08:00
|
|
|
|
|
2024-03-17 18:37:06 -07:00
|
|
|
|
public static class DecoratorResources
|
|
|
|
|
{
|
2024-02-05 23:08:37 -08:00
|
|
|
|
public static readonly IBrush[] Backgrounds = [
|
|
|
|
|
new SolidColorBrush(0xFF02C302),
|
|
|
|
|
new SolidColorBrush(0xFFFFB835),
|
|
|
|
|
];
|
|
|
|
|
}
|
2024-03-17 18:37:06 -07:00
|
|
|
|
}
|