From 0eebc9af92fce56ed75fbeb101cb8cb5011b5030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Fri, 7 Sep 2018 12:50:48 +0200 Subject: [PATCH] Keep the current theme in LibraryWindow and pass it when needed. --- YACReaderLibrary/library_window.cpp | 4 +++- YACReaderLibrary/library_window.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index 8da72b0c..eff4fdf9 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -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 diff --git a/YACReaderLibrary/library_window.h b/YACReaderLibrary/library_window.h index 993b58b9..344ef364 100644 --- a/YACReaderLibrary/library_window.h +++ b/YACReaderLibrary/library_window.h @@ -11,6 +11,8 @@ #include "yacreader_navigation_controller.h" +#include "theme.h" + #include #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 upgradeLibraryFuture; + Theme theme = Theme::currentTheme(); TrayIconController *trayIconController; };