mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 13:50:12 +08:00
17 lines
366 B
C++
17 lines
366 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
|
|
class ThemeManager : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
QString system_style_name = "";
|
|
QString current_theme = "0"; // int: 0:system 1+:builtin string: QStyleFactory
|
|
|
|
void ApplyTheme(const QString &theme, bool force = false);
|
|
signals:
|
|
void themeChanged(QString themeName);
|
|
};
|
|
|
|
extern ThemeManager *themeManager;
|