mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
14 lines
485 B
C#
14 lines
485 B
C#
using Avalonia.Data.Converters;
|
|
using Avalonia.Media;
|
|
|
|
namespace SourceGit.Converters
|
|
{
|
|
public static class BoolConverters
|
|
{
|
|
public static readonly FuncValueConverter<bool, double> ToCommitOpacity =
|
|
new FuncValueConverter<bool, double>(x => x ? 1 : 0.5);
|
|
|
|
public static readonly FuncValueConverter<bool, FontWeight> ToCommitFontWeight =
|
|
new FuncValueConverter<bool, FontWeight>(x => x ? FontWeight.Bold : FontWeight.Regular);
|
|
}
|
|
}
|