Implement setting link colours in wxHyperlinkCtrl for GTK+3
Use GtkCssProvider to customize the colours used. Closes #17089.
This commit is contained in:
committed by
Vadim Zeitlin
parent
1e70c05759
commit
d30673e507
@@ -13,6 +13,12 @@
|
||||
|
||||
#include "wx/generic/hyperlink.h"
|
||||
|
||||
#include "wx/scopedptr.h"
|
||||
|
||||
#ifdef __WXGTK3__
|
||||
class wxHyperlinkCtrlColData;
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxHyperlinkCtrl
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -72,6 +78,19 @@ protected:
|
||||
|
||||
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
enum LinkKind
|
||||
{
|
||||
Link_Normal,
|
||||
Link_Visited
|
||||
};
|
||||
|
||||
void DoSetLinkColour(LinkKind linkKind, const wxColour& colour);
|
||||
|
||||
#ifdef __WXGTK3__
|
||||
wxScopedPtr<wxHyperlinkCtrlColData> m_colData;
|
||||
#endif
|
||||
|
||||
wxDECLARE_DYNAMIC_CLASS(wxHyperlinkCtrl);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user