From 4bf276e912d3fa172b18a83e1d832b5a463fb8b5 Mon Sep 17 00:00:00 2001 From: spycrab Date: Sat, 30 Jun 2018 20:15:22 +0200 Subject: [PATCH] Qt/WrapInScrollArea: Ensure correct macOS background colors --- Source/Core/DolphinQt2/QtUtils/WrapInScrollArea.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt2/QtUtils/WrapInScrollArea.cpp b/Source/Core/DolphinQt2/QtUtils/WrapInScrollArea.cpp index 1b4273d5b2..ef3a1f1fff 100644 --- a/Source/Core/DolphinQt2/QtUtils/WrapInScrollArea.cpp +++ b/Source/Core/DolphinQt2/QtUtils/WrapInScrollArea.cpp @@ -30,8 +30,8 @@ QWidget* GetWrappedWidget(QWidget* wrapped_widget, QWidget* to_resize, int margi std::max(recommended_height, to_resize->height())); } -#ifdef _WIN32 - // Transparency can cause unwanted side-effects on OSes other than Windows +#if defined(_WIN32) || defined(__APPLE__) + // Transparency can cause unwanted side-effects on OSes other than Windows / macOS // Make sure the background color stays consistent with the parent widget QPalette p = wrapped_widget->palette();