mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 18:33:09 -05:00
22 lines
515 B
C++
22 lines
515 B
C++
#include "comics_view_transition.h"
|
|
|
|
#include <QPainter>
|
|
|
|
ComicsViewTransition::ComicsViewTransition(QWidget *parent)
|
|
: QWidget(parent)
|
|
{
|
|
initTheme(this);
|
|
}
|
|
|
|
void ComicsViewTransition::applyTheme(const Theme &theme)
|
|
{
|
|
setStyleSheet(QString("QWidget {background:%1}").arg(theme.defaultContentBackgroundColor.name()));
|
|
update();
|
|
}
|
|
|
|
void ComicsViewTransition::paintEvent(QPaintEvent *)
|
|
{
|
|
QPainter painter(this);
|
|
painter.fillRect(0, 0, width(), height(), theme.defaultContentBackgroundColor);
|
|
}
|