2022-01-19 20:46:42 +00:00
|
|
|
#ifndef PAGEAPPEARANCE_H
|
|
|
|
#define PAGEAPPEARANCE_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QScopedPointer>
|
2022-01-21 19:02:50 +00:00
|
|
|
#include <QStyleFactory>
|
|
|
|
#include <QVariant>
|
|
|
|
#include <QSettings>
|
|
|
|
#include <vector>
|
2022-01-19 20:46:42 +00:00
|
|
|
|
2022-01-26 20:53:44 +00:00
|
|
|
#include "shared/global.h"
|
|
|
|
|
2022-01-19 20:46:42 +00:00
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class PageAppearance;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @todo write docs
|
|
|
|
*/
|
|
|
|
class PageAppearance : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
PageAppearance(QWidget* parent = nullptr);
|
|
|
|
~PageAppearance();
|
|
|
|
|
2022-01-21 19:02:50 +00:00
|
|
|
signals:
|
|
|
|
void variableModified(const QString& key, const QVariant& value);
|
|
|
|
|
|
|
|
protected slots:
|
2022-01-27 17:44:32 +00:00
|
|
|
void onStyleChanged(int index);
|
2022-01-21 19:02:50 +00:00
|
|
|
void onThemeChanged(int index);
|
|
|
|
|
2022-01-19 20:46:42 +00:00
|
|
|
private:
|
|
|
|
QScopedPointer<Ui::PageAppearance> m_ui;
|
2022-01-21 19:02:50 +00:00
|
|
|
std::vector<QString> styles;
|
2022-01-27 17:44:32 +00:00
|
|
|
std::vector<QString> themes;
|
2022-01-19 20:46:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PAGEAPPEARANCE_H
|