From 398e8744bdb48b78c3d9f690c861306c69b22313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Sun, 16 Sep 2018 14:03:11 +0200 Subject: [PATCH] Fix TLW appearance in macOS 10.14's dark mode Set toplevel window's background colour to the correct value of NSColor.windowBackgroundColor (i.e. wxSYS_COLOUR_APPWORKSPACE). Without this, the window's frame would be rendered slightly incorrectly, because of the way the dark mode blends colors - even when no part of the window's interior, where the background color would be used, is visible. --- src/osx/nonownedwnd_osx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/nonownedwnd_osx.cpp b/src/osx/nonownedwnd_osx.cpp index f8b36c26e7..3f46bca9e2 100644 --- a/src/osx/nonownedwnd_osx.cpp +++ b/src/osx/nonownedwnd_osx.cpp @@ -152,7 +152,7 @@ bool wxNonOwnedWindow::Create(wxWindow *parent, wxWindowCreateEvent event(this); HandleWindowEvent(event); - SetBackgroundColour(wxSystemSettings::GetColour( wxSYS_COLOUR_3DFACE )); + SetBackgroundColour(wxSystemSettings::GetColour( wxSYS_COLOUR_APPWORKSPACE )); if ( parent ) parent->AddChild(this);