@@ -33,6 +33,15 @@ public bool OnlyHighlightCurrentBranch
3333 set => SetValue ( OnlyHighlightCurrentBranchProperty , value ) ;
3434 }
3535
36+ public static readonly StyledProperty < long > HoveredCommitIdProperty =
37+ AvaloniaProperty . Register < CommitGraph , long > ( nameof ( HoveredCommitId ) , 0 ) ;
38+
39+ public long HoveredCommitId
40+ {
41+ get => GetValue ( HoveredCommitIdProperty ) ;
42+ set => SetValue ( HoveredCommitIdProperty , value ) ;
43+ }
44+
3645 public static readonly StyledProperty < Models . CommitGraphLayout > LayoutProperty =
3746 AvaloniaProperty . Register < CommitGraph , Models . CommitGraphLayout > ( nameof ( Layout ) ) ;
3847
@@ -48,6 +57,7 @@ static CommitGraph()
4857 GraphProperty ,
4958 DotBrushProperty ,
5059 OnlyHighlightCurrentBranchProperty ,
60+ HoveredCommitIdProperty ,
5161 LayoutProperty ) ;
5262 }
5363
@@ -75,6 +85,7 @@ public override void Render(DrawingContext context)
7585 private void DrawCurves ( DrawingContext context , Models . CommitGraph graph , double top , double bottom , double rowHeight )
7686 {
7787 var grayedPen = new Pen ( new SolidColorBrush ( Colors . Gray , 0.4 ) , Models . CommitGraph . Pens [ 0 ] . Thickness ) ;
88+ var grayedPenHover = new Pen ( new SolidColorBrush ( Colors . Gray , 0.7 ) , Models . CommitGraph . Pens [ 0 ] . Thickness ) ;
7889 var onlyHighlightCurrentBranch = OnlyHighlightCurrentBranch ;
7990
8091 if ( onlyHighlightCurrentBranch )
@@ -169,6 +180,7 @@ private void DrawCurves(DrawingContext context, Models.CommitGraph graph, double
169180 }
170181 }
171182
183+
172184 if ( ! line . IsMerged && onlyHighlightCurrentBranch )
173185 context . DrawGeometry ( null , grayedPen , geo ) ;
174186 else
0 commit comments