From aa4544bd78d7452d80fcbe9a02021cf1edf197ca Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sun, 28 Mar 2010 19:37:29 +0000 Subject: [PATCH] look for elements in the translucent folder when we have the blurback effect enabled svn path=/trunk/KDE/kdelibs/; revision=1108402 --- theme.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/theme.cpp b/theme.cpp index cc5ee060c..b5024d4ce 100644 --- a/theme.cpp +++ b/theme.cpp @@ -41,6 +41,8 @@ #include #include + +#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