From 589b5f009c58b89a2c32136889836669d2888893 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Thu, 5 Nov 2020 22:13:24 +0200 Subject: [PATCH] applets:dont enable overlay hovering if not needed --- containment/package/contents/ui/applet/ItemWrapper.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/containment/package/contents/ui/applet/ItemWrapper.qml b/containment/package/contents/ui/applet/ItemWrapper.qml index 8f583c3bc..3f7d2451c 100644 --- a/containment/package/contents/ui/applet/ItemWrapper.qml +++ b/containment/package/contents/ui/applet/ItemWrapper.qml @@ -554,13 +554,16 @@ Item{ anchors.fill: _wrapperContainer source: _wrapperContainer - enabled: appletItem.isSquare && !originalAppletBehavior && !indicators.info.providesHoveredAnimation && opacity != 0 ? true : false - opacity: appletMouseArea.containsMouse ? 1 : 0 + enabled: opacity != 0 ? true : false + opacity: appletMouseArea.containsMouse && isActive ? 1 : 0 brightness: 0.25 contrast: 0.15 visible: !indicators.info.providesHoveredAnimation + readonly property bool isActive: appletItem.isSquare && !originalAppletBehavior && !indicators.info.providesHoveredAnimation + Behavior on opacity { + enabled: hoveredImage.isActive NumberAnimation { duration: appletItem.animations.speedFactor.current*appletItem.animations.duration.large } } }