using Avalonia.Data.Converters; using Avalonia.Media; namespace SourceGit.Converters { public static class BookmarkConverters { public static readonly FuncValueConverter ToBrush = new FuncValueConverter(bookmark => Models.Bookmarks.Brushes[bookmark]); public static readonly FuncValueConverter ToStrokeThickness = new FuncValueConverter(bookmark => bookmark == 0 ? 1.0 : 0); } }