Skip to content

Commit

Permalink
Make generic wxListCtrl lines more visible
Browse files Browse the repository at this point in the history
Use wxSYS_COLOUR_GRAYTEXT, as wxSYS_COLOUR_3DLIGHT is not visible at all
on the default white background under macOS and is barely visible with
the default GTK theme.

On the flip side, it's too bright in the dark themes, but this is,
arguably, better than not being visible at all.

See #22664.
  • Loading branch information
vadz committed Jul 24, 2022
1 parent 43d0eb4 commit 7bfad49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/wx/generic/private/listctrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ class wxListMainWindow : public wxWindow
// get the colour to be used for drawing the rules
wxColour GetRuleColour() const
{
return wxSystemSettings::GetColour(wxSYS_COLOUR_3DLIGHT);
return wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT);
}

private:
Expand Down

0 comments on commit 7bfad49

Please sign in to comment.