squawk/ui/widgets/settings/pageappearance.h

42 lines
730 B
C
Raw Normal View History

#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>
#include "shared/global.h"
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);
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;
};
#endif // PAGEAPPEARANCE_H