mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
be21e5b52d
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
20 lines
429 B
C++
20 lines
429 B
C++
#pragma once
|
|
|
|
#include <QScrollArea>
|
|
|
|
namespace chatterino {
|
|
|
|
static void removeScrollAreaBackground(QScrollArea *scrollArea,
|
|
QWidget *childWidget)
|
|
{
|
|
scrollArea->setWidgetResizable(true);
|
|
scrollArea->setFrameStyle(0);
|
|
|
|
QPalette p;
|
|
p.setColor(QPalette::Window, QColor(0, 0, 0, 0));
|
|
scrollArea->setPalette(p);
|
|
childWidget->setPalette(p);
|
|
}
|
|
|
|
} // namespace chatterino
|