on xenial help sign in
bring back the panel hiding/showing animations
98ac537Lukáš Tinkl
qml/Panel/Panel.qml+13−6
@@ -30,8 +30,6 @@ Item {
30 property real indicatorAreaShowProgress: 1.0
30 property real indicatorAreaShowProgress: 1.0
31 property bool locked: false
31 property bool locked: false
32
32
33− opacity: fullscreenMode && indicators.fullyClosed ? 0.0 : 1.0
34−
35 Rectangle {
33 Rectangle {
36 id: darkenedArea
34 id: darkenedArea
37 property real darkenedOpacity: 0.6
35 property real darkenedOpacity: 0.6
@@ -56,10 +54,6 @@ Item {
56
54
57 anchors.fill: parent
55 anchors.fill: parent
58
56
59− Behavior on anchors.topMargin {
60− UbuntuNumberAnimation {}
61− }
62−
63 transform: Translate {
57 transform: Translate {
64 y: indicators.state === "initial"
58 y: indicators.state === "initial"
65 ? (1.0 - indicatorAreaShowProgress) * -d.indicatorHeight
59 ? (1.0 - indicatorAreaShowProgress) * -d.indicatorHeight
@@ -209,6 +203,7 @@ Item {
209 PropertyChanges {
203 PropertyChanges {
210 target: indicatorArea;
204 target: indicatorArea;
211 anchors.topMargin: 0
205 anchors.topMargin: 0
206+ opacity: 1;
212 }
207 }
213 },
208 },
214 State {
209 State {
@@ -217,6 +212,7 @@ Item {
217 PropertyChanges {
212 PropertyChanges {
218 target: indicatorArea;
213 target: indicatorArea;
219 anchors.topMargin: indicators.state === "initial" ? -d.indicatorHeight : 0
214 anchors.topMargin: indicators.state === "initial" ? -d.indicatorHeight : 0
215+ opacity: indicators.fullyClosed ? 0.0 : 1.0
220 }
216 }
221 PropertyChanges {
217 PropertyChanges {
222 target: indicators.showDragHandle;
218 target: indicators.showDragHandle;
@@ -224,4 +220,15 @@ Item {
224 }
220 }
225 }
221 }
226 ]
222 ]
223+
224+ transitions: [
225+ Transition {
226+ to: "onscreen"
227+ UbuntuNumberAnimation { target: indicatorArea; properties: "anchors.topMargin,opacity" }
228+ },
229+ Transition {
230+ to: "offscreen"
231+ UbuntuNumberAnimation { target: indicatorArea; properties: "anchors.topMargin,opacity" }
232+ }
233+ ]
227}
234}