From 71219f84d5f1ba1982f8e02da488477e15e6d3f2 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 23 Sep 2015 12:22:39 +0200 Subject: [PATCH] add a shadow --- shell/contents/explorer/WidgetExplorer.qml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/shell/contents/explorer/WidgetExplorer.qml b/shell/contents/explorer/WidgetExplorer.qml index cc7a7969..9722d5a5 100644 --- a/shell/contents/explorer/WidgetExplorer.qml +++ b/shell/contents/explorer/WidgetExplorer.qml @@ -18,6 +18,7 @@ */ import QtQuick 2.2 +import QtGraphicalEffects 1.0 import QtQuick.Controls 1.1 import org.kde.plasma.components 2.0 as PlasmaComponents @@ -100,6 +101,34 @@ Rectangle { } } + LinearGradient { + width: units.gridUnit/2 + anchors { + left: parent.right + top: parent.top + bottom: parent.bottom + rightMargin: -1 + } + start: Qt.point(0, 0) + end: Qt.point(units.gridUnit/2, 0) + gradient: Gradient { + GradientStop { + position: 0.0 + color: Qt.rgba(0, 0, 0, 0.3) + } + GradientStop { + position: 0.3 + color: Qt.rgba(0, 0, 0, 0.15) + } + GradientStop { + position: 1.0 + color: "transparent" + } + } + MouseArea { + anchors.fill: parent + } + } WidgetExplorer { id: widgetExplorer