diff options
Diffstat (limited to 'src/menuhandler.cpp')
-rw-r--r-- | src/menuhandler.cpp | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/src/menuhandler.cpp b/src/menuhandler.cpp index 1899029..f461e7c 100644 --- a/src/menuhandler.cpp +++ b/src/menuhandler.cpp @@ -1150,6 +1150,7 @@ void MenuHandler::slotModKickerConf() fillMoreUsed(); else if( currentMenuMode == RecentlyUsed ) fillRecentlyUsed(); + setBackground(); } @@ -1703,10 +1704,17 @@ void MenuHandler::setBackground() rootPix = nullptr; } - if (prefSkel->transparent()) { + if (isTransparent()) { rootPix = new KRootPixmap(this); rootPix->setCustomPainting(true); - rootPix->setBlurEffect(0.0, prefSkel->blurBackground() ? 4.0 : 0.0); + rootPix->setBlurEffect(0.0, isBlurred() ? 4.0 : 0.0); + + if (prefSkel->useKickerStyle()) { + kickerConf->setGroup("General"); + double tint = double(kickerConf->readDoubleNumEntry("TintValue")) / 100; + rootPix->setFadeEffect(tint, kickerConf->readColorEntry("TintColor")); + } + connect(rootPix, TQT_SIGNAL(backgroundUpdated(const TQPixmap&)), TQT_SLOT(updateBackground(const TQPixmap&))); rootPix->start(); @@ -1718,5 +1726,23 @@ void MenuHandler::updateBackground(const TQPixmap &pix) menu->setPaletteBackgroundPixmap(pix); } +bool MenuHandler::isTransparent() +{ + if (prefSkel->useKickerStyle()) { + kickerConf->setGroup("General"); + return kickerConf->readBoolEntry("Transparent", false); + } + return prefSkel->transparent(); +} + +bool MenuHandler::isBlurred() +{ + if (prefSkel->useKickerStyle()) { + kickerConf->setGroup("General"); + return kickerConf->readBoolEntry("MenubarPanelBlurred", false); + } + return prefSkel->blurBackground(); +} + #include "menuhandler.moc" //EOF |