mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09:52 +08:00
42 lines
730 B
C++
42 lines
730 B
C++
#ifndef THEMEPAGE_H
|
|
#define THEMEPAGE_H
|
|
|
|
#include "settingspage.h"
|
|
|
|
class QListWidget;
|
|
class QLabel;
|
|
|
|
namespace vnotex
|
|
{
|
|
class ThemePage : public SettingsPage
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ThemePage(QWidget *p_parent = nullptr);
|
|
|
|
QString title() const Q_DECL_OVERRIDE;
|
|
|
|
protected:
|
|
void loadInternal() Q_DECL_OVERRIDE;
|
|
|
|
bool saveInternal() Q_DECL_OVERRIDE;
|
|
|
|
private:
|
|
void setupUI();
|
|
|
|
void loadThemes();
|
|
|
|
void loadThemePreview(const QString &p_name);
|
|
|
|
QString currentTheme() const;
|
|
|
|
QListWidget *m_themeListWidget = nullptr;
|
|
|
|
QLabel *m_previewLabel = nullptr;
|
|
|
|
QString m_noPreviewText;
|
|
};
|
|
}
|
|
|
|
#endif // THEMEPAGE_H
|