make Theme::currentThemeHasImage check for compressedsvg files
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=836139
This commit is contained in:
parent
f925d33c9b
commit
538272d133
@ -569,7 +569,8 @@ void Applet::setBackgroundHints(const BackgroundHints hints)
|
||||
d->background = new Plasma::PanelSvg();
|
||||
}
|
||||
|
||||
if ((hints & TranslucentBackground) && Plasma::Theme::defaultTheme()->currentThemeHasImage("widgets/translucentbackground")) {
|
||||
if ((hints & TranslucentBackground) &&
|
||||
Plasma::Theme::defaultTheme()->currentThemeHasImage("widgets/translucentbackground")) {
|
||||
d->background->setImagePath("widgets/translucentbackground");
|
||||
} else {
|
||||
d->background->setImagePath("widgets/background");
|
||||
|
@ -360,7 +360,8 @@ QString Theme::wallpaperPath(const QSize &size) const
|
||||
|
||||
bool Theme::currentThemeHasImage(const QString& name) const
|
||||
{
|
||||
return (!d->findInTheme(name + ".svg", d->themeName).isEmpty());
|
||||
return !(d->findInTheme(name + ".svgz", d->themeName).isEmpty()) ||
|
||||
!(d->findInTheme(name + ".svg", d->themeName).isEmpty());
|
||||
}
|
||||
|
||||
KSharedConfigPtr Theme::colorScheme() const
|
||||
|
Loading…
Reference in New Issue
Block a user