on xenial help sign in
Add gradient to RunningApplicationsGrid, too, as it's not a DashRenderer...
5321f97Michał Sawicz
qml/Dash/Apps/RunningApplicationsGrid.qml+30
@@ -27,6 +27,12 @@ ResponsiveFlowView {
27 property alias enableHeightBehavior: heightBehaviour.enabled
27 property alias enableHeightBehavior: heightBehaviour.enabled
28 property bool enableHeightBehaviorOnNextCreation: firstModel.count + secondModel.count == 0
28 property bool enableHeightBehaviorOnNextCreation: firstModel.count + secondModel.count == 0
29
29
30+ /// Whether this is the first item in the list
31+ property bool firstItem: false
32+
33+ /// Whether this is the last item in the list
34+ property bool lastItem: false
35+
30 Connections {
36 Connections {
31 target: shell
37 target: shell
32 onDashShownChanged: if (shell.dashShown && shell.stageScreenshotsReady) updateScreenshots();
38 onDashShownChanged: if (shell.dashShown && shell.stageScreenshotsReady) updateScreenshots();
@@ -117,4 +123,28 @@ ResponsiveFlowView {
117 root.terminationModeEnabled = false;
123 root.terminationModeEnabled = false;
118 }
124 }
119 }
125 }
126+
127+ Image {
128+ visible: !firstItem
129+ anchors {
130+ top: parent.top
131+ left: parent.left
132+ right: parent.right
133+ }
134+ fillMode: Image.Stretch
135+ source: "../graphics/dash_divider_top_lightgrad.png"
136+ z: -1
137+ }
138+
139+ Image {
140+ visible: !lastItem
141+ anchors {
142+ bottom: parent.bottom
143+ left: parent.left
144+ right: parent.right
145+ }
146+ fillMode: Image.Stretch
147+ source: "../graphics/dash_divider_top_darkgrad.png"
148+ z: -1
149+ }
120}
150}