ux: add style for issue link hovered

This commit is contained in:
leo 2024-08-13 12:25:06 +08:00
parent 08fc069281
commit 435c12b340
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View file

@ -106,6 +106,8 @@ namespace SourceGit.Views
return; return;
_lastHover = match; _lastHover = match;
_lastHover.Link.Classes.Add("issue_link_hovered");
SetCurrentValue(CursorProperty, Cursor.Parse("Hand")); SetCurrentValue(CursorProperty, Cursor.Parse("Hand"));
ToolTip.SetTip(this, match.URL); ToolTip.SetTip(this, match.URL);
ToolTip.SetIsOpen(this, true); ToolTip.SetIsOpen(this, true);

View file

@ -253,6 +253,8 @@ namespace SourceGit.Views
return; return;
_lastHover = match; _lastHover = match;
_lastHover.Link.Classes.Add("issue_link_hovered");
SetCurrentValue(CursorProperty, Cursor.Parse("Hand")); SetCurrentValue(CursorProperty, Cursor.Parse("Hand"));
ToolTip.SetTip(this, match.URL); ToolTip.SetTip(this, match.URL);
ToolTip.SetIsOpen(this, true); ToolTip.SetIsOpen(this, true);