a method to fetch custom size wallpapers

This commit is contained in:
Marco Martin 2011-10-09 16:12:00 +02:00
parent 84de302083
commit 554399afc7
2 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,11 @@ QString ThemeProxy::wallpaperPath() const
return Plasma::Theme::defaultTheme()->wallpaperPath();
}
QString ThemeProxy::wallpaperPathForSize(int width, int height) const
{
return Plasma::Theme::defaultTheme()->wallpaperPath(QSize(width, height));
}
QColor ThemeProxy::textColor() const
{
return Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor);

View File

@ -63,6 +63,7 @@ public:
KUrl homepage() const;
bool useGlobalSettings() const;
QString wallpaperPath() const;
Q_INVOKABLE QString wallpaperPathForSize(int width=-1, int height=-1) const;
QColor textColor() const;
QColor highlightColor() const;