on xenial help sign in
Add gradient to RunningApplicationsGrid, too, as it's not a DashRenderer...
commit5321f9775dbc032923197d6234048e46942daf41 authorMichał Sawicz <michal.sawicz@canonical.com> dateSat 22 Feb 2014, 15:41 (13 years ago) parentb9347b5
1 file changed+30
qml/Dash/Apps/RunningApplicationsGrid.qml+30
qml/Dash/Apps/RunningApplicationsGrid.qml+30
@@ -27,6 +27,12 @@ ResponsiveFlowView {
2727 property alias enableHeightBehavior: heightBehaviour.enabled
2828 property bool enableHeightBehaviorOnNextCreation: firstModel.count + secondModel.count == 0
2929
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+
3036 Connections {
3137 target: shell
3238 onDashShownChanged: if (shell.dashShown && shell.stageScreenshotsReady) updateScreenshots();
@@ -117,4 +123,28 @@ ResponsiveFlowView {
117123 root.terminationModeEnabled = false;
118124 }
119125 }
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+ }
120150}