Initial implementation of theming

This commit is contained in:
luisangelsm
2026-02-19 17:39:22 +01:00
parent ed28c94f66
commit 044176d6b7
303 changed files with 4634 additions and 2119 deletions

View File

@ -5,3 +5,45 @@ EmptySpecialListWidget::EmptySpecialListWidget(QWidget *parent)
{
setUpDefaultLayout(true);
}
void EmptySpecialListWidget::showFavorites()
{
currentType = Favorites;
setPixmap(theme.emptyContainer.emptyFavoritesIcon);
setText(tr("No favorites"));
}
void EmptySpecialListWidget::showReading()
{
currentType = Reading;
setPixmap(theme.emptyContainer.emptyCurrentReadingsIcon);
setText(tr("You are not reading anything yet, come on!!"));
}
void EmptySpecialListWidget::showRecent()
{
currentType = Recent;
setPixmap(QPixmap());
setText(tr("There are no recent comics!"));
}
void EmptySpecialListWidget::applyTheme(const Theme &theme)
{
EmptyContainerInfo::applyTheme(theme);
updateIcon();
}
void EmptySpecialListWidget::updateIcon()
{
switch (currentType) {
case Favorites:
setPixmap(theme.emptyContainer.emptyFavoritesIcon);
break;
case Reading:
setPixmap(theme.emptyContainer.emptyCurrentReadingsIcon);
break;
case Recent:
case None:
break;
}
}