Use appropriate system colour for lines in wxGenericTreeCtrl
Native control seems to use wxSYS_COLOUR_GRAYTEXT, so follow it in the generic one. Closes #18710. Co-authored-by: pb101 <pb101@trac.wxwidgets.org>
This commit is contained in:
committed by
Vadim Zeitlin
parent
42a756d5fe
commit
e604d01302
@@ -1013,7 +1013,8 @@ bool wxGenericTreeCtrl::Create(wxWindow *parent,
|
||||
// style because we apparently get performance problems when using dotted
|
||||
// pen for drawing in some ports -- but under MSW it seems to work fine
|
||||
#ifdef __WXMSW__
|
||||
m_dottedPen = wxPen(*wxLIGHT_GREY, 0, wxPENSTYLE_DOT);
|
||||
m_dottedPen = wxPen(wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT),
|
||||
1, wxPENSTYLE_DOT);
|
||||
#else
|
||||
m_dottedPen = *wxGREY_PEN;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user