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:
committed by
Vadim Zeitlin
parent
a829b1df06
commit
872692132a
@@ -268,8 +268,8 @@ wxAuiDefaultDockArt::InitBitmaps ()
|
|||||||
0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
|
0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
const wxColour inactive = *wxWHITE;
|
const wxColour inactive = wxSystemSettings::GetColour(wxSYS_COLOUR_INACTIVECAPTION);
|
||||||
const wxColour active = *wxWHITE;
|
const wxColour active = wxSystemSettings::GetColour(wxSYS_COLOUR_CAPTIONTEXT);
|
||||||
#else
|
#else
|
||||||
const wxColor inactive = m_inactiveCaptionTextColour;
|
const wxColor inactive = m_inactiveCaptionTextColour;
|
||||||
const wxColor active = m_activeCaptionTextColour;
|
const wxColor active = m_activeCaptionTextColour;
|
||||||
|
Reference in New Issue
Block a user