a method to fetch custom size wallpapers
This commit is contained in:
parent
84de302083
commit
554399afc7
@ -61,6 +61,11 @@ QString ThemeProxy::wallpaperPath() const
|
|||||||
return Plasma::Theme::defaultTheme()->wallpaperPath();
|
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
|
QColor ThemeProxy::textColor() const
|
||||||
{
|
{
|
||||||
return Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor);
|
return Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor);
|
||||||
|
@ -63,6 +63,7 @@ public:
|
|||||||
KUrl homepage() const;
|
KUrl homepage() const;
|
||||||
bool useGlobalSettings() const;
|
bool useGlobalSettings() const;
|
||||||
QString wallpaperPath() const;
|
QString wallpaperPath() const;
|
||||||
|
Q_INVOKABLE QString wallpaperPathForSize(int width=-1, int height=-1) const;
|
||||||
|
|
||||||
QColor textColor() const;
|
QColor textColor() const;
|
||||||
QColor highlightColor() const;
|
QColor highlightColor() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user