on xenial help sign in
Add top/bottom gradients.
f56dce4Michał Karnicki
qml/Dash/GenericScopeView.qml+26
@@ -142,6 +142,19 @@ FocusScope {
142 readonly property string category: categoryId
142 readonly property string category: categoryId
143 readonly property var item: rendererLoader.item
143 readonly property var item: rendererLoader.item
144
144
145+ Image {
146+ id: bottomGradient
147+ anchors {
148+ bottom: parent.bottom
149+ left: parent.left
150+ right: parent.right
151+ }
152+ fillMode: Image.Stretch
153+ verticalAlignment: Image.AlignBottom
154+ source: "graphics/dash_divider_top_darkgrad.png"
155+ z: -1
156+ }
157+
145 Loader {
158 Loader {
146 id: rendererLoader
159 id: rendererLoader
147 anchors {
160 anchors {
@@ -287,6 +300,19 @@ FocusScope {
287 else
300 else
288 categoryView.expandedCategoryId = "";
301 categoryView.expandedCategoryId = "";
289 }
302 }
303+
304+ Image {
305+ id: topGradient
306+ anchors {
307+ top: parent.top
308+ left: parent.left
309+ right: parent.right
310+ }
311+ fillMode: Image.Stretch
312+ verticalAlignment: Image.AlignTop
313+ source: "graphics/dash_divider_top_lightgrad.png"
314+ z: -1
315+ }
290 }
316 }
291 pageHeader: Item {
317 pageHeader: Item {
292 implicitHeight: scopeView.tabBarHeight
318 implicitHeight: scopeView.tabBarHeight
qml/Dash/graphics/dash_divider_top_darkgrad@27.pngnew file

Binary file not shown.

qml/Dash/graphics/dash_divider_top_lightgrad@27.pngnew file

Binary file not shown.