summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-05-07 09:28:20 +0200
committerspycrab <spycrab@users.noreply.github.com>2018-05-07 17:23:03 +0200
commitfc069f709efb1f5baf109d32a47df2a8f4fb06ff (patch)
tree2e8aa81330ebaabd23e97c79aad240baced37c41 /Source/Core
parentecb5c97b4dcccbf4cdf4c08890169ff770400cd1 (diff)
Qt/WrapInScrollArea: Only use transparency on Windows
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt2/QtUtils/WrapInScrollArea.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/QtUtils/WrapInScrollArea.cpp b/Source/Core/DolphinQt2/QtUtils/WrapInScrollArea.cpp
index 32ffb0c652..1b4273d5b2 100644
--- a/Source/Core/DolphinQt2/QtUtils/WrapInScrollArea.cpp
+++ b/Source/Core/DolphinQt2/QtUtils/WrapInScrollArea.cpp
@@ -30,11 +30,17 @@ 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
+
// 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
return scroll;
}