mirror of
https://github.com/YACReader/yacreader
synced 2026-03-02 10:50:04 -05:00
Initial implementation of theming
This commit is contained in:
@ -8,13 +8,18 @@
|
||||
#include <QComboBox>
|
||||
#include <QCheckBox>
|
||||
|
||||
class ServerConfigDialog : public QDialog
|
||||
#include "themable.h"
|
||||
|
||||
class ServerConfigDialog : public QDialog, protected Themable
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ServerConfigDialog(QWidget *parent = 0);
|
||||
void showEvent(QShowEvent *event) override;
|
||||
|
||||
protected:
|
||||
void applyTheme(const Theme &theme) override;
|
||||
|
||||
private:
|
||||
QComboBox *ip;
|
||||
QLineEdit *port;
|
||||
@ -24,6 +29,14 @@ private:
|
||||
QPushButton *close;
|
||||
QPushButton *accept;
|
||||
QLabel *qrCode;
|
||||
|
||||
// Labels for themable styling
|
||||
QLabel *titleLabel;
|
||||
QLabel *qrMessageLabel;
|
||||
QLabel *propagandaLabel;
|
||||
QLabel *ipLabel;
|
||||
QLabel *portLabel;
|
||||
QLabel *backgroundDecoration;
|
||||
|
||||
public slots:
|
||||
void generateQR();
|
||||
|
||||
Reference in New Issue
Block a user