Permalink
Browse files

Qt/WrapInScrollArea: Make background color more consistent

  • Loading branch information...
spycrab committed May 2, 2018
1 parent 54a6b0f commit b741ef81bd06a0f70695abe3a0238380b4348405
Showing with 7 additions and 0 deletions.
  1. +7 −0 Source/Core/DolphinQt2/QtUtils/WrapInScrollArea.cpp
@@ -6,6 +6,7 @@
#include <QFrame>
#include <QLayout>
#include <QPalette>
#include <QScrollArea>
#include <QVBoxLayout>
#include <QWidget>
@@ -29,6 +30,12 @@ QWidget* GetWrappedWidget(QWidget* wrapped_widget, QWidget* to_resize, int margi
std::max(recommended_height, to_resize->height()));
}
// 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);
return scroll;
}

0 comments on commit b741ef8

Please sign in to comment.