https://bugs.kde.org/show_bug.cgi?id=362531
--- Comment #9 from Jeff Bai <[email protected]> --- (In reply to Leslie Zhai from comment #7) > 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 Well no... There were conditions before background contrast should be enabled. - Background Contrast is a plugin for a desktop effect, powered by KWin; - Then KWin needs to have effects enabled; The patch above sadly breaks it. -- You are receiving this mail because: You are watching all bug changes.
