on xenial help sign in
Added animation
1b06e54Andrea Cimitan
qml/Dash/Previews/PreviewRatingInput.qml+12−2
@@ -107,7 +107,7 @@ PreviewWidget {
107 right: parent.right
107 right: parent.right
108 top: ratingLabelAndWidgetContainer.visible ? ratingLabelAndWidgetContainer.bottom : parent.top
108 top: ratingLabelAndWidgetContainer.visible ? ratingLabelAndWidgetContainer.bottom : parent.top
109 bottom: parent.bottom
109 bottom: parent.bottom
110− topMargin: ratingLabelAndWidgetContainer.visible ? reviewContainer.innerMargin : 0
110+ topMargin: ratingLabelAndWidgetContainer.visible ? reviewSubmitContainer.implicitHeight * (opacity - 1) + innerMargin : 0
111 }
111 }
112 visible: {
112 visible: {
113 switch(widgetData["visible"]) {
113 switch(widgetData["visible"]) {
@@ -118,7 +118,17 @@ PreviewWidget {
118 return false;
118 return false;
119 case "review":
119 case "review":
120 return true;
120 return true;
121+ }
122+ }
123+
124+ opacity: visible ? 1 : 0
125+ z: opacity < 1 ? -1 : 1
126+
127+ Behavior on opacity {
128+ UbuntuNumberAnimation {
129+ duration: UbuntuAnimation.BriskDuration
130+ easing.type: Easing.OutCubic
121− }
131+ }
122 }
132 }
123
133
124 Item {
134 Item {