Adding HEAD decorator markup in the Graph

This commit is contained in:
Filipe Ramalho 2024-05-25 15:05:32 -03:00
parent 8aeb7ed17c
commit 4750ad0d07
4 changed files with 15 additions and 2 deletions

View file

@ -38,6 +38,9 @@ namespace SourceGit.Converters
});
public static readonly FuncValueConverter<Models.DecoratorType, FontWeight> ToFontWeight =
new FuncValueConverter<Models.DecoratorType, FontWeight>(v => v == Models.DecoratorType.CurrentBranchHead ? FontWeight.Bold : FontWeight.Regular);
new FuncValueConverter<Models.DecoratorType, FontWeight>(v =>
v is Models.DecoratorType.CurrentBranchHead or Models.DecoratorType.CurrentCommitHead
? FontWeight.Bold : FontWeight.Regular
);
}
}