Files
yacreader/YACReader/page_label_widget.h
luisangelsm edd5bbc69c Make Themable pass the current Theme through applyTheme
This reduces boilerplate code and remove the ThemeManager dependency at Thamable subclasses level.
2026-02-19 18:06:31 +01:00

35 lines
618 B
C++

#ifndef PAGE_LABEL_WIDGET_H
#define PAGE_LABEL_WIDGET_H
#include <QWidget>
#include "themable.h"
class QLabel;
class QPropertyAnimation;
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(const Theme &theme) override;
public:
PageLabelWidget(QWidget *parent);
public slots:
void show();
void hide();
void setText(const QString &text);
void updatePosition();
};
#endif