/* SPDX-FileCopyrightText: 2017 Marco Martin SPDX-FileCopyrightText: 2020 Noah Davis SPDX-FileCopyrightText: 2021 Arjen Hiemstra SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef KIRIGAMIPLASMATHEME_H #define KIRIGAMIPLASMATHEME_H #include #include #include #include #include #include class PlasmaDesktopTheme; class KIconLoader; class StyleSingleton; class PlasmaDesktopTheme : public Kirigami::Platform::PlatformTheme { Q_OBJECT public: explicit PlasmaDesktopTheme(QObject *parent = nullptr); ~PlasmaDesktopTheme() override; Q_INVOKABLE QIcon iconFromTheme(const QString &name, const QColor &customColor = Qt::transparent) override; void syncWindow(); void syncColors(); protected: bool event(QEvent *event) override; private: friend class StyleSingleton; QPointer m_window; }; #endif // KIRIGAMIPLASMATHEME_H