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

@ -3,6 +3,8 @@
#include <QtWidgets>
#include "themable.h"
class YACReaderFoldersView;
class YACReaderLibraryListWidget;
class YACReaderSearchLineEdit;
@ -14,12 +16,16 @@ class YACReaderSideBarSeparator : public QWidget
{
public:
explicit YACReaderSideBarSeparator(QWidget *parent = 0);
void setColor(const QColor &color);
protected:
void paintEvent(QPaintEvent *event);
private:
QColor separatorColor;
};
class YACReaderSideBar : public QWidget
class YACReaderSideBar : public QWidget, protected Themable
{
Q_OBJECT
public:
@ -40,8 +46,11 @@ public slots:
protected:
void paintEvent(QPaintEvent *);
void closeEvent(QCloseEvent *event);
void applyTheme(const Theme &theme) override;
QSettings *settings;
QSplitter *splitter;
QList<YACReaderSideBarSeparator *> separators;
};
#endif // YACREADER_SIDEBAR_H