on xenial help sign in
Add category gradients.
commit8fcc0185f464d58120295fa954fd004b882c8335 authorMichał Karnicki <michal.karnicki@canonical.com> dateFri 21 Feb 2014, 18:30 (13 years ago) parenta61bf6f
3 files changed+26
qml/Dash/GenericScopeView.qml+26 qml/Dash/graphics/dash_divider_top_darkgrad.png qml/Dash/graphics/dash_divider_top_lightgrad.png
qml/Dash/GenericScopeView.qml+26
@@ -143,6 +143,19 @@ FocusScope {
143143 readonly property string category: categoryId
144144 readonly property var item: rendererLoader.item
145145
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+
146159 Loader {
147160 id: rendererLoader
148161 anchors {
@@ -302,6 +315,19 @@ FocusScope {
302315 else
303316 categoryView.expandedCategoryId = "";
304317 }
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+ }
305331 }
306332 pageHeader: Item {
307333 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.