@@ -31,6 +31,8 @@ Item {
32 signal searchClicked
32 signal searchClicked
34+ property real backgroundY: 0
34 PanelBackground {
36 PanelBackground {
35 id: panelBackground
37 id: panelBackground
@@ -38,7 +40,7 @@ Item {
38 right: parent.right
40 right: parent.right
40 height: __panelMinusSeparatorLineHeight
42 height: __panelMinusSeparatorLineHeight
41− y: 0
43+ y: backgroundY
43 Behavior on y { StandardAnimation {} }
45 Behavior on y { StandardAnimation {} }
@@ -109,6 +111,34 @@ Item {
109 source: "graphics/rectangular_dropshadow.sci"
111 source: "graphics/rectangular_dropshadow.sci"
115+ id: backgroundSearch
116+ height: __panelMinusSeparatorLineHeight
123+ opacity: search.state=="visible" ? 1.0 : 0.0
126+ id: backgroundGradient
130+ width: __panelMinusSeparatorLineHeight
131+ height: __panelMinusSeparatorLineHeight
133+ gradient: Gradient {
134+ GradientStop { position: 0.0; color: "transparent" }
135+ GradientStop { position: 1.0; color: backgroundSearch.color }
138+ Behavior on y { StandardAnimation {} }
139+ Behavior on opacity { StandardAnimation {} }
112 SearchIndicator {
142 SearchIndicator {
113 id: search
143 id: search
114 objectName: "search"
144 objectName: "search"
@@ -127,7 +157,6 @@ Item {
127 return "hidden";
157 return "hidden";
131 height: __panelMinusSeparatorLineHeight
160 height: __panelMinusSeparatorLineHeight
132 anchors {
161 anchors {
133 top: panelBackground.top
162 top: panelBackground.top
@@ -141,12 +170,12 @@ Item {
142 name: "in" //fully opaque and visible at top edge of screen
171 name: "in" //fully opaque and visible at top edge of screen
143 when: !fullscreenMode
172 when: !fullscreenMode
144− PropertyChanges { target: panelBackground; y: 0 }
173+ PropertyChanges { target: root; backgroundY: 0 }
147 name: "out" //pushed off screen
176 name: "out" //pushed off screen
148 when: fullscreenMode
177 when: fullscreenMode
149− PropertyChanges { target: panelBackground; y: -panelHeight }
178+ PropertyChanges { target: root; backgroundY: -panelHeight }