Plasma
theme.cpp
42 connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, ThemePrivate::globalTheme, &ThemePrivate::onAppExitCleanup);
60 connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, priv, &ThemePrivate::onAppExitCleanup);
108 connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, priv, &ThemePrivate::onAppExitCleanup);
187 QString image = d->defaultWallpaperTheme + QStringLiteral("/contents/images/%1x%2") + d->defaultWallpaperSuffix;
215 fullPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QLatin1String("wallpapers/") + image);
222 fullPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QLatin1String("wallpapers/") + defaultImage);
244 return path.contains(QLatin1String("/" PLASMA_RELATIVE_DATA_INSTALL_DIR "/desktoptheme/") % d->themeName);
350 void Theme::insertIntoRectsCache(const QString &image, const QString &element, const QRectF &rect)
void aboutToQuit()
void setUseGlobalSettings(bool useGlobal)
Tells the theme whether to follow the global settings or use application specific settings.
Definition: theme.cpp:257
void insertIntoCache(const QString &key, const QPixmap &pix)
Insert specified pixmap into the cache.
Definition: theme.cpp:306
qreal backgroundSaturation() const
This method allows Plasma to set a background contrast effect for a given theme, improving readabilit...
Definition: theme.cpp:449
bool isValid() const const
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QColor color(ColorRole role, ColorGroup group=NormalColorGroup) const
Returns the text color to be used by items resting on the background.
Definition: theme.cpp:252
QSize size() const const
void releaseRectsCache(const QString &image)
Frees up memory used by cached information for a given image without removing the permanent record of...
Definition: theme.cpp:371
QFont font()
QFont systemFont(QFontDatabase::SystemFont type)
QRect boundingRect(QChar ch) const const
int width() const const
QString imagePath(const QString &name) const
Retrieve the path for an SVG image in the current theme.
Definition: theme.cpp:124
void smallestFontChanged()
Notifier for change of smallestFont property.
bool blurBehindEnabled() const
This method allows Plasma to enable and disable the blurring of what is behind the background for a g...
Definition: theme.cpp:457
QString locate(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options)
qint64 currentSecsSinceEpoch()
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
KSharedConfigPtr colorScheme() const
Returns the color scheme configurationthat goes along this theme.
Definition: theme.cpp:247
int height() const const
bool isEmpty() const const
QCoreApplication * instance()
qreal backgroundContrast() const
This method allows Plasma to set a background contrast effect for a given theme, improving readabilit...
Definition: theme.cpp:422
QueuedConnection
void setCacheLimit(int kbytes)
Sets the maximum size of the cache (in kilobytes).
Definition: theme.cpp:378
void setThemeName(const QString &themeName)
Sets the current theme being used.
Definition: theme.cpp:92
Q_INVOKABLE QSizeF mSize(const QFont &font=QGuiApplication::font()) const
Returns the size of the letter "M" as rendered on the screen with the given font.
Definition: theme.cpp:407
SmallestReadableFont
void invalidateRectsCache(const QString &image)
Discards all the information about a given image from the rectangle disk cache.
Definition: theme.cpp:366
bool isNull() const const
bool backgroundContrastEnabled() const
This method allows Plasma to enable and disable the background contrast effect for a given theme,...
Definition: theme.cpp:412
bool findInRectsCache(const QString &image, const QString &element, QRectF &rect) const
Tries to load the rect of a sub element from a disk cache.
Definition: theme.cpp:326
GenericDataLocation
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
bool adaptiveTransparencyEnabled() const
This method allows Plasma to enable and disable the adaptive transparency option of the panel,...
Definition: theme.cpp:417
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
void defaultFontChanged()
Notifier for change of defaultFont property.
qreal backgroundIntensity() const
This method allows Plasma to set a background contrast effect for a given theme, improving readabilit...
Definition: theme.cpp:437
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
bool currentThemeHasImage(const QString &name) const
Checks if this theme has an image named in a certain way.
Definition: theme.cpp:233
bool findInCache(const QString &key, QPixmap &pix, unsigned int lastModified=0)
This is an overloaded member provided to check with file timestamp where cache is still valid.
Definition: theme.cpp:274
QStringList listCachedRectKeys(const QString &image) const
Returns a list of all keys of cached rects for the given image.
Definition: theme.cpp:341
void insertIntoRectsCache(const QString &image, const QString &element, const QRectF &rect)
Inserts a rectangle of a sub element of an image into a disk cache.
Definition: theme.cpp:350
long toLong(bool *ok, int base) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:15:02 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:15:02 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.