From 6ef98bdb2dcf9e5068f99a93ca5684fe50232084 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 24 Feb 2015 16:37:29 +0100 Subject: [PATCH] use framesvg --- shell/contents/components/SatelliteStripe.qml | 14 ++++++++++---- shell/contents/views/Desktop.qml | 18 ++++++------------ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/shell/contents/components/SatelliteStripe.qml b/shell/contents/components/SatelliteStripe.qml index 03e1aa91..813576f6 100644 --- a/shell/contents/components/SatelliteStripe.qml +++ b/shell/contents/components/SatelliteStripe.qml @@ -1,10 +1,16 @@ import QtQuick 2.0 import org.kde.plasma.core 2.0 as PlasmaCore -Rectangle { - gradient: Gradient { - GradientStop { position: 0.0; color: "#FFEDDF00" } - GradientStop { position: 3.0; color: "#00EDDF00" } +Item { + PlasmaCore.FrameSvgItem { + z: -1 + imagePath: "widgets/background" + enabledBorders: PlasmaCore.FrameSvgItem.TopBorder | PlasmaCore.FrameSvgItem.BottomBorder + anchors { + fill: parent + topMargin: -margins.top + bottomMargin: -margins.bottom + } } opacity: 0.6 diff --git a/shell/contents/views/Desktop.qml b/shell/contents/views/Desktop.qml index b045bb64..75f4f9e4 100644 --- a/shell/contents/views/Desktop.qml +++ b/shell/contents/views/Desktop.qml @@ -211,6 +211,12 @@ MouseEventListener { } } + Rectangle { + z: 1 + color: Qt.rgba(0, 0, 0, 0.7 * (Math.min(applications.contentY + homescreen.height, homescreen.height) / homescreen.height)) + anchors.fill: parent + } + PlasmaCore.DataSource { id: notificationsSource @@ -414,18 +420,6 @@ MouseEventListener { id: appListModel } - Rectangle { - color: Qt.rgba(0, 0, 0, 0.7 * height / homescreen.height) - anchors { - left: parent.left - right: parent.right - bottom: parent.bottom - } - height: Math.min(applications.contentY + homescreen.height, homescreen.height) - } - Text { - text: applications.contentY - } GridView { id: applications anchors {