X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/28dd9a9d035b5435897d626d1b57b4308daa0371..ca4adfd06220c55f95c4b950f35447f7b4328bb7:/src/generic/hyperlinkg.cpp diff --git a/src/generic/hyperlinkg.cpp b/src/generic/hyperlinkg.cpp index 07b9b2468f..791b15b357 100644 --- a/src/generic/hyperlinkg.cpp +++ b/src/generic/hyperlinkg.cpp @@ -79,6 +79,7 @@ bool wxGenericHyperlinkCtrl::Create(wxWindow *parent, wxWindowID id, // colours m_normalColour = *wxBLUE; m_hoverColour = *wxRED; + m_visitedColour = wxColour("#551a8b"); SetForegroundColour(m_normalColour); // by default the font of an hyperlink control is underlined @@ -195,7 +196,7 @@ void wxGenericHyperlinkCtrl::OnLeftDown(wxMouseEvent& event) void wxGenericHyperlinkCtrl::OnLeftUp(wxMouseEvent& event) { // the click must be started and ended in the hyperlink rect - if (!m_clicking || !GetLabelRect().Contains(event.GetPosition())) + if (!m_clicking || !GetLabelRect().Contains(event.GetPosition())) return; SetForegroundColour(m_visitedColour);