QWindowKit  1.5.1.0
Cross-platform window customization framework
Loading...
Searching...
No Matches
styleagent_p.h
1// Copyright (C) 2023-present Stdware Collections (https://www.github.com/stdware)
2// Copyright (C) 2021-2023 wangwenx190 (Yuhang Zhao)
3// SPDX-License-Identifier: Apache-2.0
4
5#ifndef STYLEAGENTPRIVATE_H
6#define STYLEAGENTPRIVATE_H
7
8//
9// W A R N I N G !!!
10// -----------------
11//
12// This file is not part of the QWindowKit API. It is used purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or may even be removed.
15//
16
17#include <QWKCore/styleagent.h>
18
19namespace QWK {
20
21 class StyleAgentPrivate {
22 Q_DECLARE_PUBLIC(StyleAgent)
23 public:
24 StyleAgentPrivate();
25 ~StyleAgentPrivate();
26
27 void init();
28
29 StyleAgent *q_ptr = nullptr;
30
31 StyleAgent::SystemTheme systemTheme = StyleAgent::Unknown;
32 QColor systemAccentColor;
33
34 void setupSystemThemeHook();
35 void removeSystemThemeHook();
36
37 void notifyThemeChanged(StyleAgent::SystemTheme theme);
38 void notifyAccentColorChanged(const QColor &color);
39 };
40
41}
42
43#endif // STYLEAGENTPRIVATE_H
QWindowKit namespace.
Definition abstractwindowcontext.cpp:13