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 <QWidget>
#include "themable.h"
class QToolButton;
class QLabel;
class QResizeEvent;
@ -10,7 +12,7 @@ class QPaintEvent;
class QHBoxLayout;
// TODO create methods for adding actions, separators and sctreches dynimically
class YACReaderMainToolBar : public QWidget
class YACReaderMainToolBar : public QWidget, protected Themable
{
Q_OBJECT
public:
@ -40,8 +42,13 @@ private:
QLabel *currentFolder;
QString currentFolderName;
QList<QLabel *> dividers;
void addDivider();
void addWideDivider();
protected:
void applyTheme(const Theme &theme) override;
};
#endif // YACREADER_MAIN_TOOLBAR_H