1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 17:42:10 +01:00
falkonOfficial/src/preferences/thememanager.h

48 lines
806 B
C
Raw Normal View History

#ifndef THEMEMANAGER_H
#define THEMEMANAGER_H
#include <QWidget>
#include <QSettings>
#include <QDir>
#include <QListWidgetItem>
#include <QHash>
#include <QTextBrowser>
namespace Ui {
class ThemeManager;
}
class ThemeManager : public QWidget
{
Q_OBJECT
public:
explicit ThemeManager(QWidget* parent);
~ThemeManager();
void save();
private slots:
void currentChanged();
void showLicense();
private:
struct Theme {
bool isValid;
QIcon icon;
QString name;
QString author;
QString shortDescription;
QString longDescription;
QString license;
};
Theme parseTheme(const QString &name);
Ui::ThemeManager *ui;
QString m_activeTheme;
QHash<QString, Theme> m_themeHash;
};
#endif // THEMEMANAGER_H