Permalink
Browse files

Qt/WrapInScrollArea: Only use transparency on Windows

  • Loading branch information...
spycrab committed May 7, 2018
1 parent ecb5c97 commit fc069f709efb1f5baf109d32a47df2a8f4fb06ff
Showing with 6 additions and 0 deletions.
  1. +6 −0 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;
}

0 comments on commit fc069f7

Please sign in to comment.