mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Inject a theme to the comics view manager.
This commit is contained in:
parent
365bf451b1
commit
f808fcfe2e
@ -14,12 +14,14 @@
|
||||
|
||||
#include "yacreader_sidebar.h"
|
||||
|
||||
#include "theme.h"
|
||||
|
||||
//--
|
||||
#include "yacreader_search_line_edit.h"
|
||||
#include "options_dialog.h"
|
||||
|
||||
YACReaderComicsViewsManager::YACReaderComicsViewsManager(QSettings *settings, LibraryWindow *parent)
|
||||
: QObject(parent), libraryWindow(parent), classicComicsView(nullptr), gridComicsView(nullptr), infoComicsView(nullptr)
|
||||
YACReaderComicsViewsManager::YACReaderComicsViewsManager(QSettings *settings, const Theme &theme, LibraryWindow *parent)
|
||||
: QObject(parent), libraryWindow(parent), classicComicsView(nullptr), gridComicsView(nullptr), infoComicsView(nullptr), theme(theme)
|
||||
{
|
||||
comicsViewStack = new QStackedWidget();
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
#include <QtWidgets>
|
||||
|
||||
#include "yacreader_global_gui.h"
|
||||
#include "theme.h"
|
||||
|
||||
class LibraryWindow;
|
||||
|
||||
@ -17,6 +18,7 @@ class EmptyLabelWidget;
|
||||
class EmptySpecialListWidget;
|
||||
class EmptyReadingListWidget;
|
||||
class NoSearchResultsWidget;
|
||||
class Theme;
|
||||
|
||||
using namespace YACReader;
|
||||
|
||||
@ -24,7 +26,7 @@ class YACReaderComicsViewsManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderComicsViewsManager(QSettings *settings, LibraryWindow *parent = nullptr);
|
||||
explicit YACReaderComicsViewsManager(QSettings *settings, const Theme &theme, LibraryWindow *parent = nullptr);
|
||||
|
||||
QWidget *containerWidget();
|
||||
|
||||
@ -51,6 +53,8 @@ protected:
|
||||
GridComicsView *gridComicsView;
|
||||
InfoComicsView *infoComicsView;
|
||||
|
||||
Theme theme;
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
Loading…
Reference in New Issue
Block a user