ux: re-design Views.Repository

* It's better to move the `Navigate to HEAD` button to the top-right of this page.
* Icons and alignments
This commit is contained in:
leo 2024-04-18 10:50:14 +08:00
parent 8d7df75241
commit 599ba01f20
5 changed files with 39 additions and 38 deletions

View file

@ -5,10 +5,10 @@ namespace SourceGit.Converters
{
public static class BoolConverters
{
public static readonly FuncValueConverter<bool, double> ToCommitOpacity =
public static readonly FuncValueConverter<bool, double> HalfIfFalse =
new FuncValueConverter<bool, double>(x => x ? 1 : 0.5);
public static readonly FuncValueConverter<bool, FontWeight> ToCommitFontWeight =
public static readonly FuncValueConverter<bool, FontWeight> BoldIfTrue =
new FuncValueConverter<bool, FontWeight>(x => x ? FontWeight.Bold : FontWeight.Regular);
}
}