Added option related to background blurring feature.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/1/head
Mavridis Philippe 3 years ago
parent 6788fb6948
commit 8135bf0f2a
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -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() );

@ -66,6 +66,7 @@ private:
TQCheckBox *cacheScaledPixmaps;
TQCheckBox *imageEffects;
TQCheckBox *blurBackground;
TQSpinBox *screenshotGrabDelay;

@ -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);

@ -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;

Loading…
Cancel
Save