42 lines
730 B
C++
42 lines
730 B
C++
#ifndef PAGEAPPEARANCE_H
|
|
#define PAGEAPPEARANCE_H
|
|
|
|
#include <QWidget>
|
|
#include <QScopedPointer>
|
|
#include <QStyleFactory>
|
|
#include <QVariant>
|
|
#include <QSettings>
|
|
#include <vector>
|
|
|
|
#include "shared/global.h"
|
|
|
|
namespace Ui
|
|
{
|
|
class PageAppearance;
|
|
}
|
|
|
|
/**
|
|
* @todo write docs
|
|
*/
|
|
class PageAppearance : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
PageAppearance(QWidget* parent = nullptr);
|
|
~PageAppearance();
|
|
|
|
signals:
|
|
void variableModified(const QString& key, const QVariant& value);
|
|
|
|
protected slots:
|
|
void onStyleChanged(int index);
|
|
void onThemeChanged(int index);
|
|
|
|
private:
|
|
QScopedPointer<Ui::PageAppearance> m_ui;
|
|
std::vector<QString> styles;
|
|
std::vector<QString> themes;
|
|
};
|
|
|
|
#endif // PAGEAPPEARANCE_H
|