Merge pull request #147 from filipeRmlh/feature/allowing_to_checkout_commit

Feature/allowing to checkout commit
This commit is contained in:
leo 2024-05-26 13:37:59 +08:00 committed by GitHub
commit e00bc4e630
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 225 additions and 9 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
);
}
}