Add a theme factory to YACReaderLibrary and theme the comic vine dialog

This commit is contained in:
luisangelsm
2026-01-14 19:58:43 +01:00
parent 1cb2f50057
commit 1bd4926b25
30 changed files with 740 additions and 178 deletions

View File

@ -1,6 +1,7 @@
#include "search_single_comic.h"
#include "scraper_lineedit.h"
#include "theme_manager.h"
#include <QLabel>
#include <QVBoxLayout>
@ -11,8 +12,7 @@ SearchSingleComic::SearchSingleComic(QWidget *parent)
{
// QLabel * label = new QLabel(tr("Please provide some additional information. At least one field is needed."));
QLabel *label = new QLabel(tr("Please provide some additional information for this comic."));
label->setStyleSheet("QLabel {color:white; font-size:12px;font-family:Arial;}");
label = new QLabel(tr("Please provide some additional information for this comic."));
// titleEdit = new ScraperLineEdit(tr("Title:"));
// numberEdit = new ScraperLineEdit(tr("Number:"));
@ -39,6 +39,8 @@ SearchSingleComic::SearchSingleComic(QWidget *parent)
l->setContentsMargins(0, 0, 0, 0);
setLayout(l);
setContentsMargins(0, 0, 0, 0);
initTheme(this);
}
QString SearchSingleComic::getVolumeInfo() const
@ -70,3 +72,10 @@ void SearchSingleComic::clean()
{
volumeEdit->clear();
}
void SearchSingleComic::applyTheme()
{
auto comicVineTheme = ThemeManager::instance().getCurrentTheme().comicVine;
label->setStyleSheet(comicVineTheme.defaultLabelQSS);
}