ux: style for current branch in branch tree (#991)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-02-18 09:50:01 +08:00
parent 7ae5100fcf
commit 14f47a9007
No known key found for this signature in database
2 changed files with 13 additions and 7 deletions

View file

@ -40,9 +40,9 @@ namespace SourceGit.ViewModels
get => Backend is Models.Branch;
}
public FontWeight NameFontWeight
public bool IsCurrent
{
get => Backend is Models.Branch { IsCurrent: true } ? FontWeight.Bold : FontWeight.Regular;
get => Backend is Models.Branch { IsCurrent: true };
}
public string Tooltip