Initial implementation of theming

This commit is contained in:
luisangelsm
2026-02-19 17:39:22 +01:00
parent ed28c94f66
commit 044176d6b7
303 changed files with 4634 additions and 2119 deletions

View File

@ -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