From ba0e1b1241ee6ac62cc900249645f47ea52877de Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Tue, 14 Jan 2025 21:03:54 +0200 Subject: Kicker: make panel blur effect strength configurable Signed-off-by: Mavridis Philippe --- kicker/kicker/core/containerarea.cpp | 7 +------ kicker/libkicker/kickerSettings.kcfg | 12 ++++++++++-- 2 files changed, 11 insertions(+), 8 deletions(-) (limited to 'kicker') diff --git a/kicker/kicker/core/containerarea.cpp b/kicker/kicker/core/containerarea.cpp index 626973855..a222076d7 100644 --- a/kicker/kicker/core/containerarea.cpp +++ b/kicker/kicker/core/containerarea.cpp @@ -1446,12 +1446,7 @@ void ContainerArea::setBackground() double tint = double(KickerSettings::tintValue()) / 100; _rootPixmap->setFadeEffect(tint, KickerSettings::tintColor()); - if (KickerSettings::menubarPanelBlurred()) { - _rootPixmap->setBlurEffect(0.0, 4.0); - } - else { - _rootPixmap->setBlurEffect(0.0, 0.0); - } + _rootPixmap->setBlurEffect(0.0, KickerSettings::blurValue()); _rootPixmap->start(); _bgSet = true; return; diff --git a/kicker/libkicker/kickerSettings.kcfg b/kicker/libkicker/kickerSettings.kcfg index 9951fe9e1..9c38534c5 100644 --- a/kicker/libkicker/kickerSettings.kcfg +++ b/kicker/libkicker/kickerSettings.kcfg @@ -44,8 +44,8 @@ - - When this option is enabled, the panel containing the menubar will blur pseudo-transparent image + + This option is deprecated, use MenubarPanelBlur false @@ -79,6 +79,14 @@ 100 + + + Set blur effect strenght for the panel. Set to 0 to disable blur. + 0 + 0 + 10 + + (TQApplication::palette().active().mid()) -- cgit v1.2.1