12#include <QGuiApplication>
15#include <KSharedConfig>
16#include <plasma/plasma_export.h>
43 Q_PROPERTY(
QString themeName READ themeName NOTIFY themeChanged)
44 Q_PROPERTY(
bool useGlobalSettings READ useGlobalSettings NOTIFY themeChanged)
45 Q_PROPERTY(
QString wallpaperPath READ wallpaperPath NOTIFY themeChanged)
48 Q_PROPERTY(
QFont defaultFont READ defaultFont NOTIFY defaultFontChanged)
49 Q_PROPERTY(
QFont smallestFont READ smallestFont NOTIFY smallestFontChanged)
51 Q_PROPERTY(
QPalette palette READ palette NOTIFY themeChanged)
53 Q_PROPERTY(qreal backgroundContrast READ backgroundContrast NOTIFY themeChanged)
54 Q_PROPERTY(qreal backgroundIntensity READ backgroundIntensity NOTIFY themeChanged)
55 Q_PROPERTY(qreal backgroundSaturation READ backgroundSaturation NOTIFY themeChanged)
67 HighlightedTextColor = 7,
68 PositiveTextColor = 8,
70 NegativeTextColor = 10,
71 DisabledTextColor = 11,
78 ComplementaryColorGroup = 3,
88 explicit Theme(
QObject *parent =
nullptr);
96 explicit Theme(
const QString &themeName,
QObject *parent =
nullptr);
103 void setThemeName(
const QString &themeName);
128 Q_INVOKABLE
QString wallpaperPathForSize(
int width = -1,
int height = -1)
const;
137 bool currentThemeHasImage(
const QString &name)
const;
144 KSharedConfigPtr colorScheme()
const;
152 QColor color(ColorRole role, ColorGroup group = NormalColorGroup)
const;
160 void setUseGlobalSettings(
bool useGlobal);
166 bool useGlobalSettings()
const;
185 QFont defaultFont()
const;
191 QFont smallestFont()
const;
209 bool backgroundContrastEnabled()
const;
224 bool adaptiveTransparencyEnabled()
const;
234 qreal backgroundContrast()
const;
244 qreal backgroundIntensity()
const;
254 qreal backgroundSaturation()
const;
270 bool blurBehindEnabled()
const;
296 static KSharedConfigPtr globalColorScheme();
315 friend class SvgPrivate;
316 friend class FrameSvg;
317 friend class FrameSvgPrivate;
318 friend class ThemePrivate;
Interface to the Plasma theme.
void defaultFontChanged()
Notifier for change of defaultFont property.
void smallestFontChanged()
Notifier for change of smallestFont property.
void themeChanged()
Emitted when the user changes the theme.
Namespace for everything in libplasma.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:41 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.