mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 02:43: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,5 @@
|
||||
#include "scraper_tableview.h"
|
||||
|
||||
#include "theme_manager.h"
|
||||
|
||||
#include <QHeaderView>
|
||||
|
||||
ScraperTableView::ScraperTableView(QWidget *parent)
|
||||
@ -44,9 +42,9 @@ ScraperTableView::ScraperTableView(QWidget *parent)
|
||||
initTheme(this);
|
||||
}
|
||||
|
||||
void ScraperTableView::applyTheme()
|
||||
void ScraperTableView::applyTheme(const Theme &theme)
|
||||
{
|
||||
auto comicVineTheme = ThemeManager::instance().getCurrentTheme().comicVine;
|
||||
auto comicVineTheme = theme.comicVine;
|
||||
|
||||
setStyleSheet(comicVineTheme.scraperTableViewQSS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user