look for elements in the translucent folder when we have the blurback effect enabled

svn path=/trunk/KDE/kdelibs/; revision=1108402
This commit is contained in:
Marco Martin 2010-03-28 19:37:29 +00:00
parent 621ead5280
commit aa4544bd78

View File

@ -41,6 +41,8 @@
#include <kstandarddirs.h>
#include <kwindowsystem.h>
#include "windoweffects.h"
#include "private/packages_p.h"
#include "libplasma-theme-global.h"
@ -201,6 +203,9 @@ QString ThemePrivate::findInTheme(const QString &image, const QString &theme) co
} else if (!compositingActive) {
search = "desktoptheme/" + theme + "/opaque/" + image;
search = KStandardDirs::locate("data", search);
} else if (WindowEffects::isEffectAvailable(WindowEffects::BlurBehind)) {
search = "desktoptheme/" + theme + "/translucent/" + image;
search = KStandardDirs::locate("data", search);
}
//not found or compositing enabled