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,6 +7,8 @@
#include <QPainter>
#include <QPoint>
#include "themable.h"
class QIcon;
class BusyIndicator;
@ -27,7 +29,7 @@ private:
void drawTextEffect(QPainter *painter, QPoint offset);
};
class YACReaderTitledToolBar : public QWidget
class YACReaderTitledToolBar : public QWidget, protected Themable
{
Q_OBJECT
public:
@ -42,10 +44,15 @@ public slots:
void addSepartor();
void showBusyIndicator();
void hideBusyIndicator();
void setTitle(const QString &title);
protected:
void applyTheme(const Theme &theme) override;
private:
DropShadowLabel *nameLabel;
BusyIndicator *busyIndicator;
QList<QWidget *> separators;
};
#endif // YACREADER_TITLED_TOOLBAR_H