summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2019-03-03 20:52:32 -0500
committerGitHub <noreply@github.com>2019-03-03 20:52:32 -0500
commit191ef76da2880e90cd95fc6ffa8e98c237d8b724 (patch)
treecc30111d5f70dfd6a39cd2b16bb0fb10a4a4e1e4 /Source/Core
parent13b2b93d3d12e4c8491ed82c63d52a24a4849476 (diff)
parent77777cd1d715683c935912b3c97341bd16653e8c (diff)
Merge pull request #7775 from chargeflux/QComboBoxBGColorFix-macOS
Fix QComboBox background and transparency workaround on macOS
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/QtUtils/WrapInScrollArea.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/Source/Core/DolphinQt/QtUtils/WrapInScrollArea.cpp b/Source/Core/DolphinQt/QtUtils/WrapInScrollArea.cpp
index d06f7b957f..11758dd47a 100644
--- a/Source/Core/DolphinQt/QtUtils/WrapInScrollArea.cpp
+++ b/Source/Core/DolphinQt/QtUtils/WrapInScrollArea.cpp
@@ -30,17 +30,8 @@ QWidget* GetWrappedWidget(QWidget* wrapped_widget, QWidget* to_resize, int margi
std::max(recommended_height, to_resize->height()));
}
-#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();
-
- p.setColor(QPalette::Window, QColor(0, 0, 0, 0));
-
- wrapped_widget->setPalette(p);
- scroll->setPalette(p);
-#endif
+ scroll->viewport()->setAutoFillBackground(false);
+ wrapped_widget->setAutoFillBackground(false);
return scroll;
}