mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 10:50:04 -05:00
Make Themable pass the current Theme through applyTheme
This reduces boilerplate code and remove the ThemeManager dependency at Thamable subclasses level.
This commit is contained in:
@ -4,7 +4,6 @@
|
||||
#include "scraper_scroll_label.h"
|
||||
#include "scraper_tableview.h"
|
||||
#include "volume_comics_model.h"
|
||||
#include "theme_manager.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonParseError>
|
||||
@ -164,9 +163,9 @@ QString SelectComic::getSelectedComicId()
|
||||
return model->getComicId(tableComics->currentIndex());
|
||||
}
|
||||
|
||||
void SelectComic::applyTheme()
|
||||
void SelectComic::applyTheme(const Theme &theme)
|
||||
{
|
||||
auto comicVineTheme = ThemeManager::instance().getCurrentTheme().comicVine;
|
||||
auto comicVineTheme = theme.comicVine;
|
||||
|
||||
label->setStyleSheet(comicVineTheme.defaultLabelQSS);
|
||||
cover->setStyleSheet(comicVineTheme.coverLabelQSS);
|
||||
|
||||
Reference in New Issue
Block a user