From 2acda9833729f7aff8e735f5733b093d1f6a5d6d Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 12 Jun 2018 23:14:44 +0200 Subject: [PATCH] Fixing NSColor value for wxSYS_COLOUR_WINDOW controlBackgroundColor should be used as a background for large controls like lists etc. this corresponds to the usage of wxSYS_COLOUR_WINDOW, thanks to dkulp --- 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 d59f9f7c0e..060f24037f 100644 --- a/src/osx/cocoa/settings.mm +++ b/src/osx/cocoa/settings.mm @@ -74,7 +74,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) sysColor = [NSColor windowFrameColor]; break; case wxSYS_COLOUR_WINDOW: - sysColor = [NSColor windowBackgroundColor]; + sysColor = [NSColor controlBackgroundColor]; break; case wxSYS_COLOUR_BTNFACE: if ( wxPlatformInfo::Get().CheckOSVersion(10, 14 ) )