Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/theme.cpp
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Line(s) | 188 | { | |||
---|---|---|---|---|---|
189 | return d->imagePath(themeName(), QStringLiteral("/appbackgrounds/"), image); | 189 | return d->imagePath(themeName(), QStringLiteral("/appbackgrounds/"), image); | ||
190 | } | 190 | } | ||
191 | 191 | | |||
192 | QString Theme::styleSheet(const QString &css) const | 192 | QString Theme::styleSheet(const QString &css) const | ||
193 | { | 193 | { | ||
194 | return d->processStyleSheet(css, Svg::Status::Normal); | 194 | return d->processStyleSheet(css, Svg::Status::Normal); | ||
195 | } | 195 | } | ||
196 | 196 | | |||
197 | | ||||
198 | QPalette Theme::palette() const | ||||
199 | { | ||||
200 | return d->palette; | ||||
201 | } | ||||
202 | | ||||
197 | QString Theme::wallpaperPath(const QSize &size) const | 203 | QString Theme::wallpaperPath(const QSize &size) const | ||
198 | { | 204 | { | ||
199 | QString fullPath; | 205 | QString fullPath; | ||
200 | QString image = d->defaultWallpaperTheme + QStringLiteral("/contents/images/%1x%2") + d->defaultWallpaperSuffix; | 206 | QString image = d->defaultWallpaperTheme + QStringLiteral("/contents/images/%1x%2") + d->defaultWallpaperSuffix; | ||
201 | QString defaultImage = image.arg(d->defaultWallpaperWidth).arg(d->defaultWallpaperHeight); | 207 | QString defaultImage = image.arg(d->defaultWallpaperWidth).arg(d->defaultWallpaperHeight); | ||
202 | 208 | | |||
203 | if (size.isValid()) { | 209 | if (size.isValid()) { | ||
204 | // try to customize the paper to the size requested | 210 | // try to customize the paper to the size requested | ||
▲ Show 20 Lines • Show All 307 Lines • Show Last 20 Lines |