mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
24 lines
624 B
C++
24 lines
624 B
C++
#include "empty_label_widget.h"
|
|
|
|
EmptyLabelWidget::EmptyLabelWidget(QWidget *parent)
|
|
: EmptyContainerInfo(parent)
|
|
{
|
|
setUpDefaultLayout(true);
|
|
titleLabel->setText(tr("This label doesn't contain comics yet"));
|
|
}
|
|
|
|
void EmptyLabelWidget::setColor(YACReader::LabelColors color)
|
|
{
|
|
currentColor = color;
|
|
auto it = theme.emptyContainer.emptyLabelIcons.find(static_cast<int>(color));
|
|
if (it != theme.emptyContainer.emptyLabelIcons.end()) {
|
|
setPixmap(it.value());
|
|
}
|
|
}
|
|
|
|
void EmptyLabelWidget::applyTheme(const Theme &theme)
|
|
{
|
|
EmptyContainerInfo::applyTheme(theme);
|
|
setColor(currentColor);
|
|
}
|