mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 10:50:04 -05:00
Initial implementation of theming
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
#include <QtWidgets>
|
||||
|
||||
#include "comic_model.h"
|
||||
#include "themable.h"
|
||||
|
||||
#include "folder.h"
|
||||
#include "comic_db.h"
|
||||
@ -15,7 +16,7 @@ class YACReaderToolBarStretch;
|
||||
class QQuickWidget;
|
||||
class QQmlContext;
|
||||
|
||||
class FolderContentView : public QWidget
|
||||
class FolderContentView : public QWidget, protected Themable
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@ -28,6 +29,7 @@ public:
|
||||
void setRecentRange(int days);
|
||||
|
||||
FolderModel *currentFolderModel() { return folderModel; }
|
||||
|
||||
public slots:
|
||||
void updateSettings();
|
||||
|
||||
@ -62,6 +64,8 @@ protected:
|
||||
std::unique_ptr<ComicModel> comicModel;
|
||||
FolderModel *folderModel;
|
||||
|
||||
void applyTheme(const Theme &theme) override;
|
||||
|
||||
private:
|
||||
QSettings *settings;
|
||||
QToolBar *toolbar;
|
||||
@ -72,6 +76,10 @@ private:
|
||||
QAction *coverSizeSliderAction;
|
||||
QAction *showInfoAction;
|
||||
QAction *showInfoSeparatorAction;
|
||||
|
||||
// Zoom slider labels (for theming)
|
||||
QLabel *smallZoomLabel;
|
||||
QLabel *bigZoomLabel;
|
||||
};
|
||||
|
||||
#endif // FOLDERCONTENTVIEW_H
|
||||
|
||||
Reference in New Issue
Block a user