mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 18:33:09 -05:00
Initial implementation of theming
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user