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

@ -64,11 +64,15 @@ void YACReaderNavigationController::loadFolderInfo(const QModelIndex &modelIndex
contentViewsManager->comicsView->setModel(libraryWindow->comicsModel);
contentViewsManager->showComicsView();
libraryWindow->disableComicsActions(false);
} else {
// showEmptyFolder
} else if (libraryWindow->foldersModel->rowCount(modelIndex) > 0 || !modelIndex.isValid()) {
// folder has subfolders (or is root), show folder content view
loadEmptyFolderInfo(modelIndex);
contentViewsManager->showFolderContentView();
libraryWindow->disableComicsActions(true);
} else {
// folder has no comics and no subfolders
contentViewsManager->showEmptyFolderWidget();
libraryWindow->disableComicsActions(true);
}
// libraryWindow->updateFoldersViewConextMenu(modelIndex);
@ -122,16 +126,13 @@ void YACReaderNavigationController::loadSpecialListInfo(const QModelIndex &model
// setup empty special list widget
switch (type) {
case ReadingListModel::TypeSpecialList::Favorites:
contentViewsManager->emptySpecialList->setPixmap(QPixmap(":/images/empty_favorites.png"));
contentViewsManager->emptySpecialList->setText(tr("No favorites"));
contentViewsManager->emptySpecialList->showFavorites();
break;
case ReadingListModel::TypeSpecialList::Reading:
contentViewsManager->emptySpecialList->setPixmap(QPixmap(":/images/empty_current_readings.png"));
contentViewsManager->emptySpecialList->setText(tr("You are not reading anything yet, come on!!"));
contentViewsManager->emptySpecialList->showReading();
break;
case ReadingListModel::TypeSpecialList::Recent:
contentViewsManager->emptySpecialList->setPixmap(QPixmap());
contentViewsManager->emptySpecialList->setText(tr("There are no recent comics!"));
contentViewsManager->emptySpecialList->showRecent();
break;
}