improvements for indicators

pull/5/head
Michail Vourlakos 6 years ago
parent 03f507b09c
commit 99ffe9d418

@ -576,6 +576,7 @@ Item{
opacity: appletMouseArea.containsMouse ? 1 : 0 opacity: appletMouseArea.containsMouse ? 1 : 0
brightness: 0.25 brightness: 0.25
contrast: 0.15 contrast: 0.15
visible: !indicators.info.providesHoveredAnimation
Behavior on opacity { Behavior on opacity {
NumberAnimation { duration: root.durationTime*units.longDuration } NumberAnimation { duration: root.durationTime*units.longDuration }
@ -587,7 +588,7 @@ Item{
anchors.fill: _wrapperContainer anchors.fill: _wrapperContainer
source: _wrapperContainer source: _wrapperContainer
visible: clickedAnimation.running visible: clickedAnimation.running && !indicators.info.providesClickedAnimation
} }
/* onHeightChanged: { /* onHeightChanged: {

@ -58,16 +58,16 @@ Item {
PropertyAnimation { PropertyAnimation {
target: clickedRectangle target: clickedRectangle
property: "width" property: "width"
to: indicator.currentIconSize * 3 to: indicator.currentIconSize * indicator.scaleFactor * 3
duration: 700 duration: 700
easing.type: Easing.OutQuad easing.type: Easing.Linear
} }
PropertyAnimation { PropertyAnimation {
target: clickedRectangle target: clickedRectangle
property: "opacity" property: "opacity"
to: 0 to: 0
duration: 700 duration: 700
easing.type: Easing.OutQuad easing.type: Easing.Linear
} }
} }
} }

Loading…
Cancel
Save