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

@ -2,6 +2,7 @@
#include "scraper_lineedit.h"
#include "scraper_checkbox.h"
#include "theme_manager.h"
#include <QLabel>
#include <QVBoxLayout>
@ -9,8 +10,7 @@
SearchVolume::SearchVolume(QWidget *parent)
: QWidget(parent)
{
QLabel *label = new QLabel(tr("Please provide some additional information."));
label->setStyleSheet("QLabel {color:white; font-size:12px;font-family:Arial;}");
label = new QLabel(tr("Please provide some additional information."));
volumeEdit = new ScraperLineEdit(tr("Series:"));
volumeEdit->setClearButtonEnabled(true);
@ -29,6 +29,8 @@ SearchVolume::SearchVolume(QWidget *parent)
l->setContentsMargins(0, 0, 0, 0);
setLayout(l);
setContentsMargins(0, 0, 0, 0);
initTheme(this);
}
void SearchVolume::clean()
@ -45,3 +47,10 @@ QString SearchVolume::getVolumeInfo() const
{
return volumeEdit->text();
}
void SearchVolume::applyTheme()
{
auto comicVineTheme = ThemeManager::instance().getCurrentTheme().comicVine;
label->setStyleSheet(comicVineTheme.defaultLabelQSS);
}