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:
@ -1,7 +1,6 @@
|
||||
#include "search_single_comic.h"
|
||||
|
||||
#include "scraper_lineedit.h"
|
||||
#include "theme_manager.h"
|
||||
|
||||
#include <QLabel>
|
||||
#include <QVBoxLayout>
|
||||
@ -73,9 +72,9 @@ void SearchSingleComic::clean()
|
||||
volumeEdit->clear();
|
||||
}
|
||||
|
||||
void SearchSingleComic::applyTheme()
|
||||
void SearchSingleComic::applyTheme(const Theme &theme)
|
||||
{
|
||||
auto comicVineTheme = ThemeManager::instance().getCurrentTheme().comicVine;
|
||||
auto comicVineTheme = theme.comicVine;
|
||||
|
||||
label->setStyleSheet(comicVineTheme.defaultLabelQSS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user