on xenial help sign in
removed backgrounY property
75c0909Nick Dedekind
Panel/Panel.qml+4−7
@@ -31,8 +31,6 @@ Item {
31
31
32 signal searchClicked
32 signal searchClicked
33
33
34− property real backgroundY: 0
35−
36 PanelBackground {
34 PanelBackground {
37 id: panelBackground
35 id: panelBackground
38 anchors {
36 anchors {
@@ -40,7 +38,7 @@ Item {
40 right: parent.right
38 right: parent.right
41 }
39 }
42 height: __panelMinusSeparatorLineHeight
40 height: __panelMinusSeparatorLineHeight
43− y: backgroundY
41+ y: 0
44
42
45 Behavior on y { StandardAnimation {} }
43 Behavior on y { StandardAnimation {} }
46 }
44 }
@@ -114,7 +112,7 @@ Item {
114 PanelBackground {
112 PanelBackground {
115 id: backgroundSearch
113 id: backgroundSearch
116 height: __panelMinusSeparatorLineHeight
114 height: __panelMinusSeparatorLineHeight
117− y: backgroundY
115+ y: panelBackground.y
118 anchors {
116 anchors {
119 left: parent.left
117 left: parent.left
120 right: search.right
118 right: search.right
@@ -135,7 +133,6 @@ Item {
135 GradientStop { position: 1.0; color: backgroundSearch.color }
133 GradientStop { position: 1.0; color: backgroundSearch.color }
136 }
134 }
137 }
135 }
138− Behavior on y { StandardAnimation {} }
139 Behavior on opacity { StandardAnimation {} }
136 Behavior on opacity { StandardAnimation {} }
140 }
137 }
141
138
@@ -170,12 +167,12 @@ Item {
170 State {
167 State {
171 name: "in" //fully opaque and visible at top edge of screen
168 name: "in" //fully opaque and visible at top edge of screen
172 when: !fullscreenMode
169 when: !fullscreenMode
173− PropertyChanges { target: root; backgroundY: 0 }
170+ PropertyChanges { target: panelBackground; y: 0 }
174 },
171 },
175 State {
172 State {
176 name: "out" //pushed off screen
173 name: "out" //pushed off screen
177 when: fullscreenMode
174 when: fullscreenMode
178− PropertyChanges { target: root; backgroundY: -panelHeight }
175+ PropertyChanges { target: panelBackground; y: -panelHeight }
179 }
176 }
180 ]
177 ]
181}
178}