diff --git a/shell/panelconfigview.h b/shell/panelconfigview.h --- a/shell/panelconfigview.h +++ b/shell/panelconfigview.h @@ -79,7 +79,7 @@ void syncLocation(); private Q_SLOTS: - void updateContrast(); + void updateBlurBehindAndContrast(); Q_SIGNALS: void visibilityModeChanged(); diff --git a/shell/panelconfigview.cpp b/shell/panelconfigview.cpp --- a/shell/panelconfigview.cpp +++ b/shell/panelconfigview.cpp @@ -67,9 +67,8 @@ KWindowSystem::setState(winId(), NET::KeepAbove); KWindowSystem::forceActiveWindow(winId()); - KWindowEffects::enableBlurBehind(winId(), true); - updateContrast(); - connect(&m_theme, &Plasma::Theme::themeChanged, this, &PanelConfigView::updateContrast); + updateBlurBehindAndContrast(); + connect(&m_theme, &Plasma::Theme::themeChanged, this, &PanelConfigView::updateBlurBehindAndContrast); rootContext()->setContextProperty(QStringLiteral("panel"), panelView); rootContext()->setContextProperty(QStringLiteral("configDialog"), this); @@ -88,8 +87,9 @@ syncLocation(); } -void PanelConfigView::updateContrast() +void PanelConfigView::updateBlurBehindAndContrast() { + KWindowEffects::enableBlurBehind(winId(), m_theme.blurBehindEnabled()); KWindowEffects::enableBackgroundContrast(winId(), m_theme.backgroundContrastEnabled(), m_theme.backgroundContrast(), m_theme.backgroundIntensity(), @@ -190,8 +190,7 @@ setFlags(Qt::WindowFlags((flags() | Qt::FramelessWindowHint) & (~Qt::WindowDoesNotAcceptFocus))); KWindowSystem::setState(winId(), NET::KeepAbove); KWindowSystem::forceActiveWindow(winId()); - KWindowEffects::enableBlurBehind(winId(), true); - updateContrast(); + updateBlurBehindAndContrast(); syncGeometry(); syncLocation();