diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 7827873070..fb95ecd82a 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -2816,10 +2816,7 @@ wxGenericTreeCtrl::PaintLevel(wxGenericTreeItem *item, if (HasFlag(wxTR_ROW_LINES)) { - // if the background colour is white, choose a - // contrasting color for the lines - dc.SetPen(*((GetBackgroundColour() == *wxWHITE) - ? wxMEDIUM_GREY_PEN : wxWHITE_PEN)); + dc.SetPen(wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT)); dc.DrawLine(0, y_top, 10000, y_top); dc.DrawLine(0, y, 10000, y); }