From 872692132a5946cc1fdac939775a17e24e6c32d0 Mon Sep 17 00:00:00 2001 From: Daniel Kulp Date: Mon, 13 Jul 2020 01:03:15 +0200 Subject: [PATCH] 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. --- src/aui/dockart.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aui/dockart.cpp b/src/aui/dockart.cpp index 6171fadc8e..c4a328459e 100644 --- a/src/aui/dockart.cpp +++ b/src/aui/dockart.cpp @@ -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;