Sine Striker
2023-12-27 b2471667e1377df998ec50a6f952f3d164e73e3d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef STYLEAGENT_H
#define STYLEAGENT_H
 
#include <memory>
 
#include <QtCore/QObject>
#include <QtGui/QWindow>
 
#include <QWKCore/qwkglobal.h>
 
namespace QWK {
 
    class StyleAgentPrivate;
 
    class QWK_CORE_EXPORT StyleAgent : public QObject {
        Q_OBJECT
        Q_DECLARE_PRIVATE(StyleAgent)
    public:
        explicit StyleAgent(QObject *parent = nullptr);
        ~StyleAgent() override;
 
        enum SystemTheme {
            Unknown,
            Light,
            Dark,
            HighContrast,
        };
        Q_ENUM(SystemTheme)
 
    public:
        SystemTheme systemTheme() const;
 
    Q_SIGNALS:
        void systemThemeChanged();
 
    protected:
        StyleAgent(StyleAgentPrivate &d, QObject *parent = nullptr);
 
        const std::unique_ptr<StyleAgentPrivate> d_ptr;
    };
 
}
 
#endif // STYLEAGENT_H