summaryrefslogtreecommitdiff
path: root/components/IRect.qml
diff options
context:
space:
mode:
Diffstat (limited to 'components/IRect.qml')
-rw-r--r--components/IRect.qml20
1 files changed, 14 insertions, 6 deletions
diff --git a/components/IRect.qml b/components/IRect.qml
index e5733bf..383affa 100644
--- a/components/IRect.qml
+++ b/components/IRect.qml
@@ -2,10 +2,18 @@ import QtQuick
import qs.config
Rectangle {
- Behavior on color {
- ColorAnimation {
- duration: General.animationDuration
- easing.type: Easing.InOutQuad
- }
- }
+ Behavior on color {
+ NumberAnimation {
+ duration: General.animationDuration
+ easing.type: Easing.InOutQuad
+ }
+ }
+
+ // TODO: use visible instead of opacity for perf, but we need to animate the opacity then set visible
+ Behavior on opacity {
+ NumberAnimation {
+ duration: General.animationDuration
+ easing.type: Easing.InOutQuad
+ }
+ }
}