Use more appropriate colours for AUI dock art under Mac

Use system colours instead of hard-coding white.

This is still not ideal because ideally the same wxSYS_COLOUR_XXX
constants should be usable under all platforms, but better than just
using completely wrong colours when using dark mode under Mac.
This commit is contained in:
Daniel Kulp
2020-07-13 01:03:15 +02:00
committed by Vadim Zeitlin
parent a829b1df06
commit 872692132a

View File

@@ -268,8 +268,8 @@ wxAuiDefaultDockArt::InitBitmaps ()
0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
#ifdef __WXMAC__
const wxColour inactive = *wxWHITE;
const wxColour active = *wxWHITE;
const wxColour inactive = wxSystemSettings::GetColour(wxSYS_COLOUR_INACTIVECAPTION);
const wxColour active = wxSystemSettings::GetColour(wxSYS_COLOUR_CAPTIONTEXT);
#else
const wxColor inactive = m_inactiveCaptionTextColour;
const wxColor active = m_activeCaptionTextColour;