Plasma::QuickTheme

Search for usage in LXR

Plasma::QuickTheme Class Reference

#include <Plasma/Theme>

Inheritance diagram for Plasma::QuickTheme:

Properties

QColor backgroundColor
 
QColor buttonBackgroundColor
 
QColor buttonFocusColor
 
QColor buttonHighlightedTextColor
 
QColor buttonHoverColor
 
QColor buttonNegativeTextColor
 
QColor buttonNeutralTextColor
 
QColor buttonPositiveTextColor
 
QColor buttonTextColor
 
QColor complementaryBackgroundColor
 
QColor complementaryFocusColor
 
QColor complementaryHighlightedTextColor
 
QColor complementaryHoverColor
 
QColor complementaryNegativeTextColor
 
QColor complementaryNeutralTextColor
 
QColor complementaryPositiveTextColor
 
QColor complementaryTextColor
 
QColor disabledTextColor
 
QColor headerBackgroundColor
 
QColor headerFocusColor
 
QColor headerHighlightedTextColor
 
QColor headerHoverColor
 
QColor headerNegativeTextColor
 
QColor headerNeutralTextColor
 
QColor headerPositiveTextColor
 
QColor headerTextColor
 
QColor highlightColor
 
QColor highlightedTextColor
 
QColor linkColor
 
QColor negativeTextColor
 
QColor neutralTextColor
 
QColor positiveTextColor
 
QColor textColor
 
QColor viewBackgroundColor
 
QColor viewFocusColor
 
QColor viewHighlightedTextColor
 
QColor viewHoverColor
 
QColor viewNegativeTextColor
 
QColor viewNeutralTextColor
 
QColor viewPositiveTextColor
 
QColor viewTextColor
 
QColor visitedLinkColor
 
- Properties inherited from Plasma::Theme
QFont defaultFont
 
QPalette palette
 
QFont smallestFont
 
QString styleSheet
 
QString themeName
 
bool useGlobalSettings
 
QString wallpaperPath
 
- Properties inherited from QObject
 objectName
 

Signals

void themeChangedProxy ()
 
- Signals inherited from Plasma::Theme
void defaultFontChanged ()
 
void smallestFontChanged ()
 
void themeChanged ()
 

Public Member Functions

 QuickTheme (QObject *parent=nullptr)
 
QColor backgroundColor () const
 
QColor buttonBackgroundColor () const
 
QColor buttonFocusColor () const
 
QColor buttonHighlightedTextColor () const
 
QColor buttonHoverColor () const
 
QColor buttonNegativeTextColor () const
 
QColor buttonNeutralTextColor () const
 
QColor buttonPositiveTextColor () const
 
QColor buttonTextColor () const
 
QColor complementaryBackgroundColor () const
 
QColor complementaryFocusColor () const
 
QColor complementaryHighlightedTextColor () const
 
QColor complementaryHoverColor () const
 
QColor complementaryNegativeTextColor () const
 
QColor complementaryNeutralTextColor () const
 
QColor complementaryPositiveTextColor () const
 
QColor complementaryTextColor () const
 
QColor disabledTextColor () const
 
QColor headerBackgroundColor () const
 
QColor headerFocusColor () const
 
QColor headerHighlightedTextColor () const
 
QColor headerHoverColor () const
 
QColor headerNegativeTextColor () const
 
QColor headerNeutralTextColor () const
 
QColor headerPositiveTextColor () const
 
QColor headerTextColor () const
 
QColor highlightColor () const
 
QColor highlightedTextColor () const
 
QColor linkColor () const
 
QColor negativeTextColor () const
 
QColor neutralTextColor () const
 
QColor positiveTextColor () const
 
QColor textColor () const
 
QColor viewBackgroundColor () const
 
QColor viewFocusColor () const
 
QColor viewHighlightedTextColor () const
 
QColor viewHoverColor () const
 
QColor viewNegativeTextColor () const
 
QColor viewNeutralTextColor () const
 
QColor viewPositiveTextColor () const
 
QColor viewTextColor () const
 
QColor visitedLinkColor () const
 
- Public Member Functions inherited from Plasma::Theme
 Theme (const QString &themeName, QObject *parent=nullptr)
 
 Theme (QObject *parent=nullptr)
 
bool adaptiveTransparencyEnabled () const
 
qreal backgroundContrast () const
 
bool backgroundContrastEnabled () const
 
qreal backgroundIntensity () const
 
QString backgroundPath (const QString &image) const
 
qreal backgroundSaturation () const
 
bool blurBehindEnabled () const
 
QColor color (ColorRole role, ColorGroup group=NormalColorGroup) const
 
KSharedConfigPtr colorScheme () const
 
bool currentThemeHasImage (const QString &name) const
 
QFont defaultFont () const
 
bool findInCache (const QString &key, QPixmap &pix, unsigned int lastModified=0)
 
bool findInRectsCache (const QString &image, const QString &element, QRectF &rect) const
 
QString imagePath (const QString &name) const
 
void insertIntoCache (const QString &key, const QPixmap &pix)
 
void insertIntoCache (const QString &key, const QPixmap &pix, const QString &id)
 
void insertIntoRectsCache (const QString &image, const QString &element, const QRectF &rect)
 
void invalidateRectsCache (const QString &image)
 
QStringList listCachedRectKeys (const QString &image) const
 
KPluginMetaData metadata () const
 
Q_INVOKABLE QSizeF mSize (const QFont &font=QGuiApplication::font()) const
 
QPalette palette () const
 
KPluginInfo pluginInfo () const
 
void releaseRectsCache (const QString &image)
 
void setCacheLimit (int kbytes)
 
void setThemeName (const QString &themeName)
 
void setUseGlobalSettings (bool useGlobal)
 
QFont smallestFont () const
 
QString styleSheet (const QString &css=QString()) const
 
QString themeName () const
 
bool useGlobalSettings () const
 
QString wallpaperPath (const QSize &size=QSize()) const
 
Q_INVOKABLE QString wallpaperPathForSize (int width=-1, int height=-1) const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo ()
 
void dumpObjectInfo () const const
 
void dumpObjectTree ()
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_DISABLE_COPY (Class)
 
 Q_DISABLE_COPY_MOVE (Class)
 
 Q_DISABLE_MOVE (Class)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qFindChild (const QObject *obj, const QString &name)
 
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
 
QList< T > qFindChildren (const QObject *obj, const QString &name)
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds time, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- Public Types inherited from Plasma::Theme
enum  ColorGroup {
  NormalColorGroup = 0, ButtonColorGroup = 1, ViewColorGroup = 2, ComplementaryColorGroup = 3,
  HeaderColorGroup, ToolTipColorGroup
}
 
enum  ColorRole {
  TextColor = 0, BackgroundColor = 1, HighlightColor = 2, HoverColor = 3,
  FocusColor = 4, LinkColor = 5, VisitedLinkColor = 6, HighlightedTextColor = 7,
  PositiveTextColor = 8, NeutralTextColor = 9, NegativeTextColor = 10, DisabledTextColor = 11
}
 
- Static Public Member Functions inherited from Plasma::Theme
static QPalette globalPalette ()
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

Interface to the Plasma theme.

Plasma::Theme provides access to a common and standardized set of graphic elements stored in SVG format. This allows artists to create single packages of SVGs that will affect the look and feel of all workspace components.

Plasma::Svg uses Plasma::Theme internally to locate and load the appropriate SVG data. Alternatively, Plasma::Theme can be used directly to retrieve file system paths to SVGs by name.

Definition at line 31 of file quicktheme.h.

Member Function Documentation

◆ backgroundColor()

QColor Plasma::QuickTheme::backgroundColor ( ) const
Returns
The theme's colorscheme's background color
Since
5.0

◆ buttonBackgroundColor()

QColor Plasma::QuickTheme::buttonBackgroundColor ( ) const
Returns
The theme's colorscheme's background color color of buttons
Since
5.0

◆ buttonFocusColor()

QColor Plasma::QuickTheme::buttonFocusColor ( ) const
Returns
The theme's colorscheme's color of focused buttons
Since
5.0

◆ buttonHighlightedTextColor()

QColor Plasma::QuickTheme::buttonHighlightedTextColor ( ) const
Returns
The theme's colorscheme's highlighted text color for buttons
Since
5.22

◆ buttonHoverColor()

QColor Plasma::QuickTheme::buttonHoverColor ( ) const
Returns
The theme's colorscheme's color of hovered buttons
Since
5.0

◆ buttonNegativeTextColor()

QColor Plasma::QuickTheme::buttonNegativeTextColor ( ) const
Returns
The theme's colorscheme's negative text color of buttons
Since
5.22

◆ buttonNeutralTextColor()

QColor Plasma::QuickTheme::buttonNeutralTextColor ( ) const
Returns
The theme's colorscheme's neutral text color of buttons
Since
5.22

◆ buttonPositiveTextColor()

QColor Plasma::QuickTheme::buttonPositiveTextColor ( ) const
Returns
The theme's colorscheme's positive text color of buttons
Since
5.22

◆ buttonTextColor()

QColor Plasma::QuickTheme::buttonTextColor ( ) const
Returns
The theme's colorscheme's color for text on buttons
Since
5.0

◆ complementaryBackgroundColor()

QColor Plasma::QuickTheme::complementaryBackgroundColor ( ) const
Returns
The theme's colorscheme's background color of "complementary" areas
Since
5.0

◆ complementaryFocusColor()

QColor Plasma::QuickTheme::complementaryFocusColor ( ) const
Returns
The theme's colorscheme's color of focused "complementary" areas
Since
5.0

◆ complementaryHighlightedTextColor()

QColor Plasma::QuickTheme::complementaryHighlightedTextColor ( ) const
Returns
The theme's colorscheme's highlighted text color for "complementary" areas
Since
5.22

◆ complementaryHoverColor()

QColor Plasma::QuickTheme::complementaryHoverColor ( ) const
Returns
The theme's colorscheme's color of hovered "complementary" areas
Since
5.0

◆ complementaryNegativeTextColor()

QColor Plasma::QuickTheme::complementaryNegativeTextColor ( ) const
Returns
The theme's colorscheme's negative text color of complementary
Since
5.22

◆ complementaryNeutralTextColor()

QColor Plasma::QuickTheme::complementaryNeutralTextColor ( ) const
Returns
The theme's colorscheme's neutral text color of complementary
Since
5.22

◆ complementaryPositiveTextColor()

QColor Plasma::QuickTheme::complementaryPositiveTextColor ( ) const
Returns
The theme's colorscheme's positive text color of complementary
Since
5.22

◆ complementaryTextColor()

QColor Plasma::QuickTheme::complementaryTextColor ( ) const
Returns
The theme's colorscheme's text color of "complementary" areas
Since
5.0

◆ disabledTextColor()

QColor Plasma::QuickTheme::disabledTextColor ( ) const
Returns
The theme's colorscheme's disabled text color
Since
5.64

◆ headerBackgroundColor()

QColor Plasma::QuickTheme::headerBackgroundColor ( ) const
Returns
The theme's colorscheme's background color of "header" areas
Since
5.0

◆ headerFocusColor()

QColor Plasma::QuickTheme::headerFocusColor ( ) const
Returns
The theme's colorscheme's color of focused "header" areas
Since
5.0

◆ headerHighlightedTextColor()

QColor Plasma::QuickTheme::headerHighlightedTextColor ( ) const
Returns
The theme's colorscheme's highlighted text color for "header" areas
Since
5.22

◆ headerHoverColor()

QColor Plasma::QuickTheme::headerHoverColor ( ) const
Returns
The theme's colorscheme's color of hovered "header" areas
Since
5.0

◆ headerNegativeTextColor()

QColor Plasma::QuickTheme::headerNegativeTextColor ( ) const
Returns
The theme's colorscheme's negative text color of header
Since
5.22

◆ headerNeutralTextColor()

QColor Plasma::QuickTheme::headerNeutralTextColor ( ) const
Returns
The theme's colorscheme's neutral text color of header
Since
5.22

◆ headerPositiveTextColor()

QColor Plasma::QuickTheme::headerPositiveTextColor ( ) const
Returns
The theme's colorscheme's positive text color of header
Since
5.22

◆ headerTextColor()

QColor Plasma::QuickTheme::headerTextColor ( ) const
Returns
The theme's colorscheme's text color of "header" areas
Since
5.0

◆ highlightColor()

QColor Plasma::QuickTheme::highlightColor ( ) const
Returns
The theme's colorscheme's highlight color
Since
5.0

◆ highlightedTextColor()

QColor Plasma::QuickTheme::highlightedTextColor ( ) const
Returns
The theme's colorscheme's highlighted text color
Since
5.22

◆ linkColor()

QColor Plasma::QuickTheme::linkColor ( ) const
Returns
The theme's colorscheme's link color
Since
5.0

◆ negativeTextColor()

QColor Plasma::QuickTheme::negativeTextColor ( ) const
Returns
The theme's colorscheme's negative text color
Since
5.22

◆ neutralTextColor()

QColor Plasma::QuickTheme::neutralTextColor ( ) const
Returns
The theme's colorscheme's neutral text color
Since
5.22

◆ positiveTextColor()

QColor Plasma::QuickTheme::positiveTextColor ( ) const
Returns
The theme's colorscheme's positive text color
Since
5.22

◆ textColor()

QColor Plasma::QuickTheme::textColor ( ) const
Returns
The theme's colorscheme's text color
Since
5.0

◆ viewBackgroundColor()

QColor Plasma::QuickTheme::viewBackgroundColor ( ) const
Returns
The theme's colorscheme's background color of views
Since
5.0

◆ viewFocusColor()

QColor Plasma::QuickTheme::viewFocusColor ( ) const
Returns
The theme's colorscheme's color of focused views
Since
5.0

◆ viewHighlightedTextColor()

QColor Plasma::QuickTheme::viewHighlightedTextColor ( ) const
Returns
The theme's colorscheme's highlighted text color for views
Since
5.22

◆ viewHoverColor()

QColor Plasma::QuickTheme::viewHoverColor ( ) const
Returns
The theme's colorscheme's color of hovered views
Since
5.0

◆ viewNegativeTextColor()

QColor Plasma::QuickTheme::viewNegativeTextColor ( ) const
Returns
The theme's colorscheme's negative text color of view
Since
5.22

◆ viewNeutralTextColor()

QColor Plasma::QuickTheme::viewNeutralTextColor ( ) const
Returns
The theme's colorscheme's neutral text color of view
Since
5.22

◆ viewPositiveTextColor()

QColor Plasma::QuickTheme::viewPositiveTextColor ( ) const
Returns
The theme's colorscheme's positive text color of view
Since
5.22

◆ viewTextColor()

QColor Plasma::QuickTheme::viewTextColor ( ) const
Returns
The theme's colorscheme's text color in views
Since
5.0

◆ visitedLinkColor()

QColor Plasma::QuickTheme::visitedLinkColor ( ) const
Returns
The theme's colorscheme's text color for visited links
Since
5.0

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Sep 25 2022 03:53:53 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.