disable hover/clicked animations for applets

--in order to show built-in hover/clicked animations
for applets, the applets must be Squared/with no
Plasma behavior and the chosen Indicator to not
provide hover or click animation
pull/5/head
Michail Vourlakos 6 years ago
parent 9b0c585bd4
commit eb96b52866

@ -934,7 +934,8 @@ Item {
SequentialAnimation{ SequentialAnimation{
id: clickedAnimation id: clickedAnimation
alwaysRunToEnd: true alwaysRunToEnd: true
running: (appletItem.pressed) && (root.durationTime > 0) && !indicators.info.providesClickedAnimation running: appletItem.isSquare && !originalAppletBehavior && appletItem.pressed
&& (root.durationTime > 0) && !indicators.info.providesClickedAnimation
ParallelAnimation{ ParallelAnimation{
PropertyAnimation { PropertyAnimation {

@ -564,7 +564,7 @@ Item{
anchors.fill: _wrapperContainer anchors.fill: _wrapperContainer
source: _wrapperContainer source: _wrapperContainer
enabled: !indicators.info.providesHoveredAnimation && opacity != 0 ? true : false enabled: appletItem.isSquare && !originalAppletBehavior && !indicators.info.providesHoveredAnimation && opacity != 0 ? true : false
opacity: appletMouseArea.containsMouse ? 1 : 0 opacity: appletMouseArea.containsMouse ? 1 : 0
brightness: 0.25 brightness: 0.25
contrast: 0.15 contrast: 0.15

Loading…
Cancel
Save