mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
Add toolbar and background theming to YACReader
This commit is contained in:
@ -3,18 +3,23 @@
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
#include "themable.h"
|
||||
|
||||
class QLabel;
|
||||
class QPropertyAnimation;
|
||||
|
||||
class PageLabelWidget : public QWidget
|
||||
class PageLabelWidget : public QWidget, protected Themable
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
QLabel *textLabel;
|
||||
QPropertyAnimation *animation;
|
||||
QColor infoBackgroundColor;
|
||||
int fontSizePx = 0;
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *) override;
|
||||
void applyTheme() override;
|
||||
|
||||
public:
|
||||
PageLabelWidget(QWidget *parent);
|
||||
|
||||
Reference in New Issue
Block a user