summaryrefslogtreecommitdiffstats
path: root/kicker
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2025-01-14 21:03:54 +0200
committerMavridis Philippe <[email protected]>2025-01-14 21:03:54 +0200
commitba0e1b1241ee6ac62cc900249645f47ea52877de (patch)
tree8f5bbc1362c13efd3970e6ed6858fb95a4f0ed84 /kicker
parent69a72eba035a6f8a90a6bc8d458cce79025d4c53 (diff)
downloadtdebase-ba0e1b1241ee6ac62cc900249645f47ea52877de.tar.gz
tdebase-ba0e1b1241ee6ac62cc900249645f47ea52877de.zip
Kicker: make panel blur effect strength configurable
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'kicker')
-rw-r--r--kicker/kicker/core/containerarea.cpp7
-rw-r--r--kicker/libkicker/kickerSettings.kcfg12
2 files changed, 11 insertions, 8 deletions
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 @@
</entry>
<entry name="MenubarPanelBlurred" type="Bool" >
- <label>Enable blurring for menubar panel</label>
- <whatsthis>When this option is enabled, the panel containing the menubar will blur pseudo-transparent image</whatsthis>
+ <label>Enable blurring for menubar panel (deprecated)</label>
+ <whatsthis>This option is deprecated, use MenubarPanelBlur</whatsthis>
<default>false</default>
</entry>
@@ -79,6 +79,14 @@
<max>100</max>
</entry>
+<entry name="BlurValue" type="Int" >
+ <label>Blur strength</label>
+ <whatsthis>Set blur effect strenght for the panel. Set to 0 to disable blur.</whatsthis>
+ <default>0</default>
+ <min>0</min>
+ <max>10</max>
+ </entry>
+
<entry name="TintColor" type="Color" >
<label>The tint color used to colorize transparent panels</label>
<default code="true">(TQApplication::palette().active().mid())</default>