Merge pull request #416 from gadfly3173/fix/head-refs-presenter

enhance: make HEAD commit badge highlight
This commit is contained in:
leo 2024-08-27 15:07:54 +08:00 committed by GitHub
commit 963916219f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -172,11 +172,8 @@ namespace SourceGit.Views
switch (decorator.Type) switch (decorator.Type)
{ {
case Models.DecoratorType.CurrentBranchHead: case Models.DecoratorType.CurrentBranchHead:
item.LabelBG = headBG;
geo = this.FindResource("Icons.Check") as StreamGeometry;
break;
case Models.DecoratorType.CurrentCommitHead: case Models.DecoratorType.CurrentCommitHead:
item.LabelBG = branchBG; item.LabelBG = headBG;
geo = this.FindResource("Icons.Check") as StreamGeometry; geo = this.FindResource("Icons.Check") as StreamGeometry;
break; break;
case Models.DecoratorType.RemoteBranchHead: case Models.DecoratorType.RemoteBranchHead: