Added implementation of background blur feature.

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

@ -61,6 +61,13 @@ KomposeDesktopWidget::KomposeDesktopWidget(int desktop, TQWidget *parent, Kompos
TQToolTip::add( this, i18n("Desktop %1 - %2").arg(desktop).arg(deskName) ); TQToolTip::add( this, i18n("Desktop %1 - %2").arg(desktop).arg(deskName) );
rootpix = new KRootPixmap (this); 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(); rootpix->start();
setAcceptDrops(TRUE); setAcceptDrops(TRUE);

@ -48,6 +48,13 @@ KomposeFullscreenWidget::KomposeFullscreenWidget( int displayType, KomposeLayout
setBackgroundMode( TQt::FixedPixmap ); setBackgroundMode( TQt::FixedPixmap );
// setBackgroundPixmap(*(KomposeGlobal::instance()->getDesktopBgPixmap())); // setBackgroundPixmap(*(KomposeGlobal::instance()->getDesktopBgPixmap()));
rootpix = new KRootPixmap (this); 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(); rootpix->start();
initMenu(); initMenu();
initView(); initView();

Loading…
Cancel
Save