Skip to content

Commit

Permalink
Fix dolphin sidebar losing blur when menu has transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
Luwx committed Aug 27, 2020
1 parent faba39b commit d53f005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kstyle/lightlyblurhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ namespace Lightly
if (region.isNull()) return;

KWindowEffects::enableBlurBehind(widget->isWindow() ? widget->winId() : widget->window()->winId(), true, region);
KWindowEffects::enableBackgroundContrast (widget->isWindow() ? widget->winId() : widget->window()->winId(), true, 1.0, 1.2, 1.3, region );
//KWindowEffects::enableBackgroundContrast (widget->isWindow() ? widget->winId() : widget->window()->winId(), true, 1.0, 1.2, 1.3, region );

// force update
if (widget->isVisible()) {
Expand Down
3 changes: 1 addition & 2 deletions kstyle/lightlystyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ namespace Lightly
if ( StyleConfigData::opaqueApps().contains(appName, Qt::CaseInsensitive) )
_isOpaque = true;


if (_translucentWidgets.size() > 0) _translucentWidgets.clear();

// base class polishing
Expand Down Expand Up @@ -446,7 +445,7 @@ namespace Lightly
setTranslucentBackground( widget );

if ( _helper->hasAlphaChannel( widget ) && StyleConfigData::menuOpacity() < 100 ) {
_blurHelper->registerWidget( widget->window(), false );
_blurHelper->registerWidget( widget->window(), _isDolphin );
}

} else if( qobject_cast<QCommandLinkButton*>( widget ) ) {
Expand Down

0 comments on commit d53f005

Please sign in to comment.