summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-04-01 19:31:40 +0300
committerMavridis Philippe <[email protected]>2021-04-01 19:31:40 +0300
commit8135bf0f2a71102b83cd1d56d9e4e9339eb13690 (patch)
treeebe4f6fed1d6aa1b6b8c39688bfafa953f786c0f /src
parent6788fb6948ce59d56829399802274f67dfab98d2 (diff)
downloadkompose-8135bf0f2a71102b83cd1d56d9e4e9339eb13690.tar.gz
kompose-8135bf0f2a71102b83cd1d56d9e4e9339eb13690.zip
Added option related to background blurring feature.
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/komposepreferences.cpp9
-rw-r--r--src/komposepreferences.h1
-rw-r--r--src/komposesettings.cpp2
-rw-r--r--src/komposesettings.h3
4 files changed, 15 insertions, 0 deletions
diff --git a/src/komposepreferences.cpp b/src/komposepreferences.cpp
index 572b714..9adf4eb 100644
--- a/src/komposepreferences.cpp
+++ b/src/komposepreferences.cpp
@@ -168,6 +168,12 @@ KomposePreferences::KomposePreferences()
TQToolTip::add( imageEffects, imageEffectsHelp );
page2Layout->addWidget(imageEffects);
+ blurBackground = new TQCheckBox(i18n("Blur desktop background"), page2);
+ TQString blurBackgroundHelp = i18n("Apply a Gaussian blur to the desktop background.");
+ TQWhatsThis::add( blurBackground, blurBackgroundHelp );
+ TQToolTip::add( blurBackground, blurBackgroundHelp );
+ page2Layout->addWidget(blurBackground);
+
showDesktopNum = new TQCheckBox(i18n("Show Desktop number on Systray icon"), page2);
TQString showDesktopNumHelp = i18n("Displays the number of the currently active Desktop on the Komposé systray icon." );
TQWhatsThis::add( showDesktopNum, showDesktopNumHelp );
@@ -300,6 +306,8 @@ void KomposePreferences::fillPages()
dynamicVirtDeskLayout->setChecked( KomposeSettings::instance()->getDynamicVirtDeskLayout() );
imageEffects->setChecked( KomposeSettings::instance()->getImageEffects() );
+ blurBackground->setChecked( KomposeSettings::instance()->getBlurBackground() );
+
showDesktopNum->setChecked( KomposeSettings::instance()->getShowDesktopNum() );
showWindowTitles->setChecked( KomposeSettings::instance()->getShowWindowTitles() );
@@ -360,6 +368,7 @@ void KomposePreferences::slotApply()
KomposeSettings::instance()->setCacheScaledPixmaps( cacheScaledPixmaps->isChecked() );
KomposeSettings::instance()->setDynamicVirtDeskLayout( dynamicVirtDeskLayout->isChecked() );
KomposeSettings::instance()->setImageEffects( imageEffects->isChecked() );
+ KomposeSettings::instance()->setBlurBackground( blurBackground->isChecked() );
KomposeSettings::instance()->setShowDesktopNum( showDesktopNum->isChecked() );
KomposeSettings::instance()->setShowWindowTitles( showWindowTitles->isChecked() );
diff --git a/src/komposepreferences.h b/src/komposepreferences.h
index 47f2027..9c72d80 100644
--- a/src/komposepreferences.h
+++ b/src/komposepreferences.h
@@ -66,6 +66,7 @@ private:
TQCheckBox *cacheScaledPixmaps;
TQCheckBox *imageEffects;
+ TQCheckBox *blurBackground;
TQSpinBox *screenshotGrabDelay;
diff --git a/src/komposesettings.cpp b/src/komposesettings.cpp
index 211bda1..3149523 100644
--- a/src/komposesettings.cpp
+++ b/src/komposesettings.cpp
@@ -99,6 +99,7 @@ void KomposeSettings::readConfig()
dynamicVirtDeskLayout = kapp->config()->readBoolEntry("dynamicVirtDeskLayout", true);
imageEffects = kapp->config()->readBoolEntry("imageEffects", true);
+ blurBackground = kapp->config()->readBoolEntry("blurBackground", true);
showIcons = kapp->config()->readBoolEntry("showIcons", true);
iconSize = kapp->config()->readNumEntry("iconSize", 3);
@@ -155,6 +156,7 @@ void KomposeSettings::writeConfig()
kapp->config()->writeEntry("dynamicVirtDeskLayout", dynamicVirtDeskLayout);
kapp->config()->writeEntry("imageEffects", imageEffects);
+ kapp->config()->writeEntry("blurBackground", blurBackground);
kapp->config()->writeEntry("showIcons", showIcons);
kapp->config()->writeEntry("iconSize", iconSize);
diff --git a/src/komposesettings.h b/src/komposesettings.h
index 7d2efa5..a53f5a0 100644
--- a/src/komposesettings.h
+++ b/src/komposesettings.h
@@ -54,6 +54,8 @@ public:
void setDynamicVirtDeskLayout( bool b ) { dynamicVirtDeskLayout = b; }
bool getImageEffects() const { return imageEffects; }
void setImageEffects( bool b ) { imageEffects = b; }
+ bool getBlurBackground() const { return blurBackground; }
+ void setBlurBackground( bool b ) { blurBackground = b; }
int getDefaultView() const { return defaultView; }
void setDefaultView( int d ) { defaultView = d; }
@@ -135,6 +137,7 @@ private:
bool dynamicVirtDeskLayout;
bool imageEffects;
+ bool blurBackground;
int defaultView;
int iconSize;