libplasma
Plasma::Theme Class Reference
#include <theme.h>
Inheritance diagram for Plasma::Theme:

Detailed Description
Interface to the Plasma theme.Accessed via Plasma::Theme::self() e.g:
QString image = Plasma::Theme::self()->image("widgets/clock")
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 49 of file theme.h.
Public Slots | |
| void | settingsChanged () |
Signals | |
| void | changed () |
Public Member Functions | |
| Theme (QObject *parent=0) | |
| ~Theme () | |
| void | setApplication (const QString &appname) |
| void | setThemeName (const QString &themeName) |
| QString | themeName () const |
| Q_INVOKABLE QString | image (const QString &name) const |
| Q_INVOKABLE KSharedConfigPtr | colors () const |
| Q_INVOKABLE QColor | textColor () const |
| Q_INVOKABLE QColor | backgroundColor () const |
| Q_INVOKABLE void | setFont (const QFont &font) |
| Q_INVOKABLE QFont | font () const |
| Q_INVOKABLE QFontMetrics | fontMetrics () const |
Static Public Member Functions | |
| static Theme * | self () |
Properties | |
| QString | themeName |
Constructor & Destructor Documentation
| Plasma::Theme::Theme | ( | QObject * | parent = 0 |
) | [explicit] |
Member Function Documentation
| Theme * Plasma::Theme::self | ( | ) | [static] |
| void Plasma::Theme::setApplication | ( | const QString & | appname | ) |
| void Plasma::Theme::setThemeName | ( | const QString & | themeName | ) |
| QString Plasma::Theme::themeName | ( | ) | const |
- Returns:
- the name of the theme.
| KSharedConfigPtr Plasma::Theme::colors | ( | ) | const |
| QColor Plasma::Theme::textColor | ( | ) | const |
| QColor Plasma::Theme::backgroundColor | ( | ) | const |
| void Plasma::Theme::setFont | ( | const QFont & | font | ) |
| QFont Plasma::Theme::font | ( | ) | const |
| QFontMetrics Plasma::Theme::fontMetrics | ( | ) | const |
| void Plasma::Theme::changed | ( | ) | [signal] |
Emitted when the user changes the theme.
SVGs should be reloaded at that point
| void Plasma::Theme::settingsChanged | ( | ) | [slot] |
Property Documentation
The documentation for this class was generated from the following files:
KDE 4.0 API Reference