applets:dont enable overlay hovering if not needed

pull/21/head
Michail Vourlakos 4 years ago
parent ab57516dab
commit 589b5f009c

@ -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 }
}
}

Loading…
Cancel
Save