2024-02-05 23:08:37 -08:00
|
|
|
|
using Avalonia.Data.Converters;
|
|
|
|
|
using Avalonia.Media;
|
|
|
|
|
|
2024-03-17 18:37:06 -07:00
|
|
|
|
namespace SourceGit.Converters
|
|
|
|
|
{
|
|
|
|
|
public static class BookmarkConverters
|
|
|
|
|
{
|
2024-03-31 01:54:29 -07:00
|
|
|
|
public static readonly FuncValueConverter<int, IBrush> ToBrush =
|
2024-02-05 23:08:37 -08:00
|
|
|
|
new FuncValueConverter<int, IBrush>(bookmark => Models.Bookmarks.Brushes[bookmark]);
|
|
|
|
|
|
2024-03-31 01:54:29 -07:00
|
|
|
|
public static readonly FuncValueConverter<int, double> ToStrokeThickness =
|
2024-02-05 23:08:37 -08:00
|
|
|
|
new FuncValueConverter<int, double>(bookmark => bookmark == 0 ? 1.0 : 0);
|
|
|
|
|
}
|
2024-03-31 01:54:29 -07:00
|
|
|
|
}
|