File indexing completed on 2024-04-21 14:54:18

0001 /*
0002     This file is part of the KDE project
0003     SPDX-FileCopyrightText: 2013 Martin Gräßlin <mgraesslin@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef KCOLORSCHEMEMANAGER_P_H
0009 #define KCOLORSCHEMEMANAGER_P_H
0010 
0011 #include <memory>
0012 
0013 #include "kcolorschememodel.h"
0014 
0015 #include <KColorSchemeWatcher>
0016 
0017 class KColorSchemeManagerPrivate
0018 {
0019 public:
0020     KColorSchemeManagerPrivate();
0021 
0022     std::unique_ptr<KColorSchemeModel> model;
0023     bool m_autosaveChanges = true;
0024     QString m_activatedScheme;
0025 
0026     static QIcon createPreview(const QString &path);
0027     void activateSchemeInternal(const QString &colorSchemePath);
0028     QString automaticColorSchemePath() const;
0029     QModelIndex indexForSchemeId(const QString &id) const;
0030 
0031 #if defined(Q_OS_WIN) || defined(Q_OS_MACOS)
0032     const QString &getLightColorScheme() const
0033     {
0034         return m_lightColorScheme;
0035     }
0036     const QString &getDarkColorScheme() const
0037     {
0038         return m_darkColorScheme;
0039     }
0040 
0041     QString m_lightColorScheme = QStringLiteral("Breeze");
0042     QString m_darkColorScheme = QStringLiteral("BreezeDark");
0043     KColorSchemeWatcher m_colorSchemeWatcher;
0044 #endif
0045 };
0046 
0047 #endif