Browse Source

Added implementation of background blur feature.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/1/head
Mavridis Philippe 1 year ago
parent
commit
47c761a5f0
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494
  1. 7
      src/komposedesktopwidget.cpp
  2. 7
      src/komposefullscreenwidget.cpp

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

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

Loading…
Cancel
Save