convenience accessor to background widget colour
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758502
This commit is contained in:
parent
ee32d3c996
commit
2e050f7b05
@ -167,6 +167,12 @@ QColor Theme::textColor() const
|
||||
return colors.foreground(KColorScheme::NormalText).color();
|
||||
}
|
||||
|
||||
QColor Theme::backgroundColor() const
|
||||
{
|
||||
KColorScheme colors(QPalette::Active, KColorScheme::Window, Theme::self()->colors());
|
||||
return colors.background().color();
|
||||
}
|
||||
|
||||
void Theme::setFont(const QFont &font)
|
||||
{
|
||||
d->generalFont = font;
|
||||
|
5
theme.h
5
theme.h
@ -103,6 +103,11 @@ class PLASMA_EXPORT Theme : public QObject
|
||||
*/
|
||||
Q_INVOKABLE QColor textColor() const;
|
||||
|
||||
/**
|
||||
* Returns the background color to be used by items resting on the background
|
||||
*/
|
||||
Q_INVOKABLE QColor backgroundColor() const;
|
||||
|
||||
/**
|
||||
* Sets the default font to be used with themed items. Defaults to
|
||||
* the application wide default font.
|
||||
|
Loading…
Reference in New Issue
Block a user