enhance: make HEAD commit badge highlight

This commit is contained in:
Gadfly 2024-08-27 14:54:28 +08:00
parent 959805d63c
commit 208dd9a5e0
No known key found for this signature in database

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: