make Theme::currentThemeHasImage check for compressedsvg files

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=836139
This commit is contained in:
Aaron J. Seigo 2008-07-21 19:36:47 +00:00
parent f925d33c9b
commit 538272d133
2 changed files with 4 additions and 2 deletions

View File

@ -569,7 +569,8 @@ void Applet::setBackgroundHints(const BackgroundHints hints)
d->background = new Plasma::PanelSvg(); 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"); d->background->setImagePath("widgets/translucentbackground");
} else { } else {
d->background->setImagePath("widgets/background"); d->background->setImagePath("widgets/background");

View File

@ -360,7 +360,8 @@ QString Theme::wallpaperPath(const QSize &size) const
bool Theme::currentThemeHasImage(const QString& name) 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 KSharedConfigPtr Theme::colorScheme() const