diff --git a/src/Converters/DecoratorTypeConverters.cs b/src/Converters/DecoratorTypeConverters.cs deleted file mode 100644 index f730b613..00000000 --- a/src/Converters/DecoratorTypeConverters.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Avalonia; -using Avalonia.Controls; -using Avalonia.Data.Converters; -using Avalonia.Media; - -namespace SourceGit.Converters -{ - public static class DecoratorTypeConverters - { - public static readonly FuncValueConverter ToBackground = - new FuncValueConverter(v => - { - if (v == Models.DecoratorType.Tag) - return Application.Current.FindResource("Brush.DecoratorTag") as IBrush; - return Application.Current.FindResource("Brush.DecoratorBranch") as IBrush; - }); - - public static readonly FuncValueConverter ToIcon = - new FuncValueConverter(v => - { - var key = "Icons.Tag"; - switch (v) - { - case Models.DecoratorType.CurrentBranchHead: - key = "Icons.Check"; - break; - case Models.DecoratorType.RemoteBranchHead: - key = "Icons.Remote"; - break; - case Models.DecoratorType.LocalBranchHead: - key = "Icons.Branch"; - break; - default: - break; - } - - return Application.Current?.FindResource(key) as StreamGeometry; - }); - - public static readonly FuncValueConverter ToFontWeight = - new FuncValueConverter(v => - v is Models.DecoratorType.CurrentBranchHead or Models.DecoratorType.CurrentCommitHead - ? FontWeight.Bold : FontWeight.Regular - ); - } -}