diff options
author | Mavridis Philippe <[email protected]> | 2021-04-01 19:37:31 +0300 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2021-04-01 19:37:31 +0300 |
commit | 47c761a5f0d9c8b39ddb189d3152907f8da6d5a4 (patch) | |
tree | 164fc11f743de2e18dd833261c7f4baad817faa8 /src | |
parent | 8135bf0f2a71102b83cd1d56d9e4e9339eb13690 (diff) | |
download | kompose-47c761a5f0d9c8b39ddb189d3152907f8da6d5a4.tar.gz kompose-47c761a5f0d9c8b39ddb189d3152907f8da6d5a4.zip |
Added implementation of background blur feature.
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/komposedesktopwidget.cpp | 7 | ||||
-rw-r--r-- | src/komposefullscreenwidget.cpp | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/komposedesktopwidget.cpp b/src/komposedesktopwidget.cpp index cbf100a..1760069 100644 --- a/src/komposedesktopwidget.cpp +++ b/src/komposedesktopwidget.cpp @@ -61,6 +61,13 @@ KomposeDesktopWidget::KomposeDesktopWidget(int desktop, TQWidget *parent, Kompos TQToolTip::add( this, i18n("Desktop %1 - %2").arg(desktop).arg(deskName) ); rootpix = new KRootPixmap (this); + + // Background blur -- exactly as done in Kicker + if(KomposeSettings::instance()->getBlurBackground()) + rootpix->setBlurEffect(0.0, 4.0); + else + rootpix->setBlurEffect(0.0, 0.0); + rootpix->start(); setAcceptDrops(TRUE); diff --git a/src/komposefullscreenwidget.cpp b/src/komposefullscreenwidget.cpp index 4e656c2..4c452b9 100644 --- a/src/komposefullscreenwidget.cpp +++ b/src/komposefullscreenwidget.cpp @@ -48,6 +48,13 @@ KomposeFullscreenWidget::KomposeFullscreenWidget( int displayType, KomposeLayout setBackgroundMode( TQt::FixedPixmap ); // setBackgroundPixmap(*(KomposeGlobal::instance()->getDesktopBgPixmap())); rootpix = new KRootPixmap (this); + + // Background blur -- exactly like done in Kicker + if (KomposeSettings::instance()->getBlurBackground()) + rootpix->setBlurEffect(0.0, 4.0); + else + rootpix->setBlurEffect(0.0, 0.0); + rootpix->start(); initMenu(); initView(); |