on xenial help sign in
Add category gradients.
8fcc018Michał Karnicki
qml/Dash/GenericScopeView.qml+26
@@ -143,6 +143,19 @@ FocusScope {
143 readonly property string category: categoryId
143 readonly property string category: categoryId
144 readonly property var item: rendererLoader.item
144 readonly property var item: rendererLoader.item
145
145
146+ Image {
147+ id: bottomGradient
148+ anchors {
149+ bottom: parent.bottom
150+ left: parent.left
151+ right: parent.right
152+ }
153+ fillMode: Image.TileHorizontally
154+ verticalAlignment: Image.AlignBottom
155+ source: Qt.resolvedUrl("graphics/dash_divider_top_darkgrad.png")
156+ z: -1
157+ }
158+
146 Loader {
159 Loader {
147 id: rendererLoader
160 id: rendererLoader
148 anchors {
161 anchors {
@@ -302,6 +315,19 @@ FocusScope {
302 else
315 else
303 categoryView.expandedCategoryId = "";
316 categoryView.expandedCategoryId = "";
304 }
317 }
318+
319+ Image {
320+ id: topGradient
321+ anchors {
322+ top: parent.top
323+ left: parent.left
324+ right: parent.right
325+ }
326+ fillMode: Image.TileHorizontally
327+ verticalAlignment: Image.AlignTop
328+ source: Qt.resolvedUrl("graphics/dash_divider_top_lightgrad.png")
329+ z: -1
330+ }
305 }
331 }
306 pageHeader: Item {
332 pageHeader: Item {
307 implicitHeight: scopeView.tabBarHeight
333 implicitHeight: scopeView.tabBarHeight
qml/Dash/graphics/dash_divider_top_darkgrad.pngnew file

Binary file not shown.

qml/Dash/graphics/dash_divider_top_lightgrad.pngnew file

Binary file not shown.