From 27d6dce48da5fd165e66846def97b1555fa6b27d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 6 Dec 2020 04:28:17 +0100 Subject: [PATCH] Fix appearance of inactive wxAuiNotebook tabs under macOS As we don't use any special value for the inactive caption background, use the same value as for normal caption text for inactive caption text too. This is almost certainly not ideal, but at least allows the tab labels to be readable. Closes #18988. --- src/osx/cocoa/settings.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/cocoa/settings.mm b/src/osx/cocoa/settings.mm index 99fd931774..472d40b424 100644 --- a/src/osx/cocoa/settings.mm +++ b/src/osx/cocoa/settings.mm @@ -128,6 +128,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) case wxSYS_COLOUR_MENUTEXT: case wxSYS_COLOUR_WINDOWTEXT: case wxSYS_COLOUR_CAPTIONTEXT: + case wxSYS_COLOUR_INACTIVECAPTIONTEXT: case wxSYS_COLOUR_INFOTEXT: case wxSYS_COLOUR_LISTBOXTEXT: sysColor = [NSColor controlTextColor]; @@ -138,7 +139,6 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) case wxSYS_COLOUR_BTNHIGHLIGHT: sysColor = [NSColor controlHighlightColor]; break; - case wxSYS_COLOUR_INACTIVECAPTIONTEXT: case wxSYS_COLOUR_GRAYTEXT: sysColor = [NSColor disabledControlTextColor]; break;