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:
luisangelsm
2026-01-20 15:57:22 +01:00
parent b662e4975b
commit edd5bbc69c
33 changed files with 55 additions and 77 deletions

View File

@ -2,7 +2,6 @@
#include "scraper_lineedit.h"
#include "scraper_checkbox.h"
#include "theme_manager.h"
#include <QLabel>
#include <QVBoxLayout>
@ -48,9 +47,9 @@ QString SearchVolume::getVolumeInfo() const
return volumeEdit->text();
}
void SearchVolume::applyTheme()
void SearchVolume::applyTheme(const Theme &theme)
{
auto comicVineTheme = ThemeManager::instance().getCurrentTheme().comicVine;
auto comicVineTheme = theme.comicVine;
label->setStyleSheet(comicVineTheme.defaultLabelQSS);
}