https://bugs.kde.org/show_bug.cgi?id=362531

--- Comment #7 from Leslie Zhai <[email protected]> ---
Hi Marco,

KWindowEffects::isEffectAvailable(KWindowEffects::BackgroundContrast) is always
false during ThemePrivate's construction, so it does not think the type =
QStringLiteral("/translucent/") shown as
https://pbs.twimg.com/media/CmQ89g3UsAAwnfI.jpg

workaround patch:

diff --git a/src/plasma/private/theme_p.cpp b/src/plasma/private/theme_p.cpp
index 18c7a73..c735729 100644
--- a/src/plasma/private/theme_p.cpp
+++ b/src/plasma/private/theme_p.cpp
@@ -66,7 +66,7 @@ ThemePrivate::ThemePrivate(QObject *parent)
       cachesToDiscard(NoCache),
       locolor(false),
       compositingActive(KWindowSystem::self()->compositingActive()),
-     
backgroundContrastActive(KWindowEffects::isEffectAvailable(KWindowEffects::BackgroundContrast)),
+      backgroundContrastActive(true),
       isDefault(true),
       useGlobal(true),
       hasWallpapers(false),

just set  backgroundContrastActive to true, then it thinks the type is
QStringLiteral("/translucent/") shown as
https://pbs.twimg.com/media/CmQ8-0NVIAAcWPM.jpg

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to