mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-26 21:17:20 -08:00
13 lines
466 B
C#
13 lines
466 B
C#
|
using Avalonia.Data.Converters;
|
|||
|
using Avalonia.Media;
|
|||
|
|
|||
|
namespace SourceGit.Converters {
|
|||
|
public static class BookmarkConverters {
|
|||
|
public static FuncValueConverter<int, IBrush> ToBrush =
|
|||
|
new FuncValueConverter<int, IBrush>(bookmark => Models.Bookmarks.Brushes[bookmark]);
|
|||
|
|
|||
|
public static FuncValueConverter<int, double> ToStrokeThickness =
|
|||
|
new FuncValueConverter<int, double>(bookmark => bookmark == 0 ? 1.0 : 0);
|
|||
|
}
|
|||
|
}
|