mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 18:33:09 -05:00
Initial implementation of theming
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user