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:
@ -2,15 +2,29 @@
|
||||
#define WHATSNEWDIALOG_H
|
||||
|
||||
#include "rounded_corners_dialog.h"
|
||||
#include <QObject>
|
||||
#include "themable.h"
|
||||
|
||||
class QLabel;
|
||||
class QPushButton;
|
||||
|
||||
namespace YACReader {
|
||||
|
||||
class WhatsNewDialog : public RoundedCornersDialog
|
||||
class WhatsNewDialog : public RoundedCornersDialog, protected Themable
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit WhatsNewDialog(QWidget *parent = nullptr);
|
||||
|
||||
protected:
|
||||
void applyTheme(const Theme &theme) override;
|
||||
|
||||
private:
|
||||
QLabel *headerImageLabel;
|
||||
QLabel *headerLabel;
|
||||
QLabel *versionLabel;
|
||||
QLabel *textLabel;
|
||||
QPushButton *closeButton;
|
||||
QString htmlTemplate;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user