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

@ -7,14 +7,17 @@
#include "yacreader_comic_flow_rhi.h"
#include "yacreader_global_gui.h"
#include "themable.h"
class ComicFlowWidget : public QWidget
class ComicFlowWidget : public QWidget, protected Themable
{
Q_OBJECT
public:
ComicFlowWidget(QWidget *parent = nullptr);
public slots:
void setBackgroundColor(const QColor &color);
void setTextColor(const QColor &color);
void setShowMarks(bool value);
void setMarks(QVector<YACReader::YACReaderComicReadStatus> marks);
void setMarkImage(QImage &image);
@ -39,6 +42,7 @@ signals:
void selected(unsigned int);
protected:
void applyTheme(const Theme &theme) override;
void keyPressEvent(QKeyEvent *event) override;
void paintEvent(QPaintEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;