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.
This commit is contained in:
committed by
Vadim Zeitlin
parent
2a8e229238
commit
27d6dce48d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user