1/*
2 This file is part of the KDE project
3 SPDX-FileCopyrightText: 2013 Martin Gräßlin <mgraesslin@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef KCOLORSCHEMEMANAGER_P_H
9#define KCOLORSCHEMEMANAGER_P_H
10
11#include <memory>
12
13#include "kcolorschememodel.h"
14
15#include <KColorSchemeWatcher>
16
17class KColorSchemeManager;
18
19class KColorSchemeManagerPrivate
20{
21public:
22 KColorSchemeManagerPrivate();
23
24 std::unique_ptr<KColorSchemeModel> model;
25 bool m_autosaveChanges = true;
26 QString m_activatedScheme;
27
28 static QIcon createPreview(const QString &path);
29 void activateSchemeInternal(const QString &colorSchemePath);
30 QString automaticColorSchemeId() const;
31 QString automaticColorSchemePath() const;
32 QModelIndex indexForSchemeId(const QString &id) const;
33
34 const QString &getLightColorScheme() const
35 {
36 return m_lightColorScheme;
37 }
38 const QString &getDarkColorScheme() const
39 {
40 return m_darkColorScheme;
41 }
42
43 QString m_lightColorScheme = QStringLiteral("BreezeLight");
44 QString m_darkColorScheme = QStringLiteral("BreezeDark");
45 std::optional<KColorSchemeWatcher> m_colorSchemeWatcher;
46};
47
48#endif
49

source code of kcolorscheme/src/kcolorschememanager_p.h