diff --git a/widget/hyperlink.go b/widget/hyperlink.go index 9961c1dd8f..4552cd4a0d 100644 --- a/widget/hyperlink.go +++ b/widget/hyperlink.go @@ -301,13 +301,14 @@ func (r *hyperlinkRenderer) Objects() []fyne.CanvasObject { } func (r *hyperlinkRenderer) Refresh() { + r.hl.provider.Refresh() th := r.hl.Theme() v := fyne.CurrentApp().Settings().ThemeVariant() - r.hl.provider.Refresh() r.hl.propertyLock.RLock() defer r.hl.propertyLock.RUnlock() - r.focus.StrokeColor = theme.FocusColor() + + r.focus.StrokeColor = th.Color(theme.ColorNameFocus, v) r.focus.Hidden = !r.hl.focused r.focus.Refresh() r.under.FillColor = th.Color(theme.ColorNameHyperlink, v)