mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Keep the current theme in LibraryWindow and pass it when needed.
This commit is contained in:
parent
7f30709920
commit
0eebc9af92
@ -83,6 +83,8 @@
|
||||
|
||||
#include "trayicon_controller.h"
|
||||
|
||||
#include "theme.h"
|
||||
|
||||
#include "QsLog.h"
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
@ -235,7 +237,7 @@ void LibraryWindow::doLayout()
|
||||
|
||||
//FINAL LAYOUT-------------------------------------------------------------
|
||||
|
||||
comicsViewsManager = new YACReaderComicsViewsManager(settings, this);
|
||||
comicsViewsManager = new YACReaderComicsViewsManager(settings, Theme::currentTheme(), this);
|
||||
|
||||
sHorizontal->addWidget(sideBar);
|
||||
#ifndef Q_OS_MAC
|
||||
|
@ -11,6 +11,8 @@
|
||||
|
||||
#include "yacreader_navigation_controller.h"
|
||||
|
||||
#include "theme.h"
|
||||
|
||||
#include <future>
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
@ -61,7 +63,6 @@ class ComicVineDialog;
|
||||
class ComicsView;
|
||||
class ClassicComicsView;
|
||||
class GridComicsView;
|
||||
class ComicsViewTransition;
|
||||
class EmptyFolderWidget;
|
||||
class NoSearchResultsWidget;
|
||||
class EditShortcutsDialog;
|
||||
@ -398,6 +399,7 @@ private:
|
||||
QSize previousSize;
|
||||
std::future<void> upgradeLibraryFuture;
|
||||
|
||||
Theme theme = Theme::currentTheme();
|
||||
TrayIconController *trayIconController;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user