mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 10:50:04 -05:00
Add a theme factory to YACReaderLibrary and theme the comic vine dialog
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user