Libplasma

plasmatheme.h
1/*
2 SPDX-FileCopyrightText: 2023 Marco Martin <mart@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef PLASMATHEME_H
8#define PLASMATHEME_H
9
10#include <Kirigami/Platform/PlatformTheme>
11
12#include <Plasma/Theme>
13#include <QColor>
14#include <QIcon>
15#include <QObject>
16#include <QPointer>
17#include <QQuickItem>
18
19class KIconLoader;
20
21class PlasmaTheme : public Kirigami::Platform::PlatformTheme
22{
24
25public:
26 explicit PlasmaTheme(QObject *parent = nullptr);
27 ~PlasmaTheme() override;
28
29 Q_INVOKABLE QIcon iconFromTheme(const QString &name, const QColor &customColor = Qt::transparent) override;
30
31 void syncColors();
32
33protected:
34 bool event(QEvent *event) override;
35
36private:
37 Plasma::Theme m_theme;
38};
39
40#endif // PLASMATHEME_H
Interface to the Plasma theme.
Definition theme.h:40
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
QObject * parent() const const
transparent
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.