Qt/WrapInScrollArea: Ensure correct macOS background colors

This commit is contained in:
spycrab 2018-06-30 20:15:22 +02:00
parent a9841e4fc4
commit 4bf276e912
1 changed files with 2 additions and 2 deletions

View File

@ -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();